import { resolve } from 'node:path' import { defineConfig } from 'vitest/config' export default defineConfig({ resolve: { alias: { '@shared': resolve(__dirname, 'src/shared'), }, }, test: { // Everything under test is Node-side. The vault takes a Keyring interface // rather than importing Electron's safeStorage, so no Electron process is // needed to exercise the security-critical paths. environment: 'node', include: ['tests/**/*.test.ts'], }, })