22 lines
626 B
TypeScript
22 lines
626 B
TypeScript
|
|
import { defineConfig } from 'vitest/config';
|
||
|
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
||
|
|
|
||
|
|
export default defineConfig(() => ({
|
||
|
|
root: __dirname,
|
||
|
|
cacheDir: '../../node_modules/.vite/apps/overlay',
|
||
|
|
plugins: [nxViteTsPaths()],
|
||
|
|
test: {
|
||
|
|
name: 'overlay',
|
||
|
|
watch: false,
|
||
|
|
globals: true,
|
||
|
|
environment: 'happy-dom',
|
||
|
|
setupFiles: ['./src/test-setup.ts'],
|
||
|
|
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
||
|
|
reporters: ['default'],
|
||
|
|
coverage: {
|
||
|
|
reportsDirectory: '../../coverage/apps/overlay',
|
||
|
|
provider: 'v8' as const,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}));
|