Open History to see the last commit
1import { defineConfig } from 'vitest/config'
2import packageJson from './package.json'
3β
4export default defineConfig({
5 // fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
6 resolve: {
7 conditions: ['@tanstack/custom-condition'],
8 },
9 environments: {
10 ssr: {
11 resolve: {
12 conditions: ['@tanstack/custom-condition'],
13 },
14 },
15 },
16 test: {
17 name: packageJson.name,
18 dir: './src',
19 watch: false,
20 coverage: {
21 enabled: !!process.env.CI,
22 provider: 'istanbul',
23 include: ['src/**/*'],
24 },
25 typecheck: { enabled: true },
26 restoreMocks: true,
27 },
28})