Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

vitest.config.ts

25 lines579 Bytes

1import angular from '@analogjs/vite-plugin-angular'
2import { defineConfig } from 'vitest/config'
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',
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 globals: true,
23 restoreMocks: true,
24 },
25})