Open History to see the last commit
1import { defineConfig } from 'vitest/config'
2import angular from '@analogjs/vite-plugin-angular'
3import packageJson from './package.json' with { type: 'json' }
4β
5export default defineConfig({
6 esbuild: {
7 target: 'es2022',
8 },
9 plugins: [angular()],
10 test: {
11 name: packageJson.name,
12 dir: './src/__tests__',
13 watch: false,
14 environment: 'jsdom',
15 setupFiles: ['test-setup.ts'],
16 coverage: {
17 enabled: true,
18 provider: 'istanbul',
19 include: ['src/**/*'],
20 exclude: ['src/__tests__/**'],
21 },
22 include: ['**/*.{test,spec}.{ts,mts,cts,tsx,js,mjs,cjs,jsx}'],
23 globals: true,
24 restoreMocks: true,
25 },
26})