MediBot / vitest.config.ts
github-actions[bot]
Deploy MedOS Global from 956ae78f
e3e3e14
Raw
History Blame Contribute Delete
588 Bytes
import { defineConfig } from 'vitest/config';
import path from 'path';
// Backend unit tests run in a plain Node environment — the RAG logic under
// test (fusion, vector math, FTS-match building, judge parsing) is pure and
// needs no DOM. Tests deliberately import only dependency-light modules so
// the suite never opens the SQLite native module or hits the network.
export default defineConfig({
test: {
environment: 'node',
globals: true,
include: ['__tests__/**/*.test.ts'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './'),
},
},
});