-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
20 lines (19 loc) · 645 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
20 lines (19 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tsconfigPaths({ projectDiscovery: 'lazy', ignoreConfigErrors: true })],
resolve: {
alias: { 'server-only': 'data:text/javascript,export {}' },
},
test: {
globals: true,
include: ['packages/*/src/**/*.test.{ts,tsx}'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'lcov'],
reportsDirectory: './.coverage',
include: ['packages/*/src/**/*.{ts,tsx}'],
exclude: ['**/*.test.{ts,tsx}', '**/*.d.ts', '**/dist/**', '**/__fixtures__/**'],
},
},
});