mirror of
https://github.com/stablyai/orca.git
synced 2026-10-26 08:02:44 +00:00
24 lines
669 B
TypeScript
24 lines
669 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
const vitestOxcConfig = { tsconfig: false } as never
|
|
|
|
export default defineConfig({
|
|
root: import.meta.dirname,
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'expo-localization': fileURLToPath(
|
|
new URL('./src/i18n/expo-localization-vitest-stub.ts', import.meta.url)
|
|
)
|
|
}
|
|
},
|
|
// 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']
|
|
}
|
|
})
|