forked from bradygaster/squad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
21 lines (20 loc) · 760 Bytes
/
vitest.config.ts
File metadata and controls
21 lines (20 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
// Force vitest to resolve @bradygaster/squad-sdk from the workspace root,
// not from a duplicate copy under packages/squad-cli/node_modules/.
// Without this, vi.mock('@bradygaster/squad-sdk') targets the root copy
// but the code under test imports from the duplicate — bypassing the mock.
dedupe: ['@bradygaster/squad-sdk'],
},
test: {
include: ['test/**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'text-summary', 'html'],
reportsDirectory: './coverage',
include: ['src/**/*.ts', 'packages/*/src/**/*.ts'],
exclude: ['**/*.test.ts', '**/*.d.ts', '**/node_modules/**'],
},
},
});