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

vite.config.ts

15 lines391 Bytes

1import { defineConfig } from 'vitest/config'
2import react from '@vitejs/plugin-react'
3​
4export default defineConfig({
5 plugins: [react()],
6 test: {
7 name: 'react-query',
8 dir: './src',
9 watch: false,
10 environment: 'jsdom',
11 setupFiles: ['test-setup.ts'],
12 coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
13 typecheck: { enabled: true },
14 },
15})