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