Open History to see the last commit
1import { defineConfig } from 'vitest/config'
2import { octane } from 'octane/compiler/vite'
3β
4import packageJson from './package.json'
5β
6export default defineConfig({
7 plugins: [octane()],
8 resolve: {
9 conditions: ['@tanstack/custom-condition'],
10 },
11 environments: {
12 ssr: {
13 resolve: {
14 conditions: ['@tanstack/custom-condition'],
15 },
16 },
17 },
18 test: {
19 name: packageJson.name,
20 dir: './tests',
21 watch: false,
22 environment: 'jsdom',
23 globalSetup: ['./tests/differential/_setup.ts'],
24 coverage: {
25 enabled: !!process.env.CI,
26 provider: 'istanbul',
27 include: ['src/**/*'],
28 exclude: ['src/__tests__/**'],
29 },
30 typecheck: { enabled: true },
31 restoreMocks: true,
32 retry: process.env.CI ? 3 : 0,
33 },
34})