Open History to see the last commit
1import { defineConfig, mergeConfig } from 'vitest/config'
2import { tanstackViteConfig } from '@tanstack/config/vite'
3import react from '@vitejs/plugin-react'
4import packageJson from './package.json'
5β
6const config = defineConfig({
7 plugins: [react()],
8 test: {
9 name: packageJson.name,
10 dir: './tests',
11 watch: false,
12 environment: 'jsdom',
13 setupFiles: ['./tests/test-setup.ts'],
14 },
15})
16β
17export default mergeConfig(
18 config,
19 tanstackViteConfig({
20 entry: './src/index.tsx',
21 srcDir: './src',
22 }),
23)