Open History to see the last commit
1import { defineConfig, mergeConfig } from 'vitest/config'
2import { tanstackBuildConfig } from '@tanstack/config/build'
3import react from '@vitejs/plugin-react'
4β
5const config = defineConfig({
6 plugins: [react()],
7 test: {
8 name: 'react-form',
9 dir: './src',
10 watch: false,
11 environment: 'jsdom',
12 globals: true,
13 coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
14 typecheck: { enabled: true },
15 },
16})
17β
18export default mergeConfig(
19 config,
20 tanstackBuildConfig({
21 entry: './src/index.ts',
22 srcDir: './src',
23 exclude: ['./src/tests'],
24 }),
25)