mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 00:57:45 +00:00
22 lines
922 B
TypeScript
22 lines
922 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: {
|
|
pool: 'threads',
|
|
environment: 'node',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
onConsoleLog: (log) => !log.includes('react-test-renderer is deprecated'),
|
|
// .tsx too: component tests exist (react-test-renderer + mocked react-native) and were
|
|
// silently never collected, so render-level regressions shipped untested.
|
|
// scripts/ too: the CI scripts under it (rpc:diff, the tests-typecheck ratchet) need a runnable
|
|
// test home, and a test vitest never collects is not a gate.
|
|
include: ['src/**/*.test.ts', 'src/**/*.test.tsx', 'scripts/**/*.test.ts']
|
|
}
|
|
})
|