15 lines
400 B
TypeScript
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']
|
|
}
|
|
})
|