Files
2026-07-13 13:05:33 +08:00

15 lines
400 B
TypeScript

import { defineConfig } from 'vitest/config'
const vitestOxcConfig = { tsconfig: false } as never
export default defineConfig({
root: import.meta.dirname,
// Why: the app tsconfig intentionally excludes tests; Vite 8's OXC transform
// otherwise fails before Vitest can run the test modules.
oxc: vitestOxcConfig,
test: {
environment: 'node',
include: ['src/**/*.test.ts']
}
})