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