-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathvitest.int.config.ts
More file actions
30 lines (29 loc) · 976 Bytes
/
vitest.int.config.ts
File metadata and controls
30 lines (29 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/// <reference types="vitest" />
import { defineConfig } from 'vitest/config';
import { tsconfigPathAliases } from '../../tools/vitest-tsconfig-path-aliases.js';
export default defineConfig({
cacheDir: '../../node_modules/.vite/utils',
test: {
reporters: ['basic'],
globals: true,
cache: {
dir: '../../node_modules/.vitest',
},
alias: tsconfigPathAliases(),
pool: 'threads',
poolOptions: { threads: { singleThread: true } },
coverage: {
reporter: ['text', 'lcov'],
reportsDirectory: '../../coverage/utils/int-tests',
exclude: ['mocks/**', 'perf/**', '**/types.ts'],
},
environment: 'node',
include: ['src/**/*.int.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
globalSetup: ['../../global-setup.ts'],
setupFiles: [
'../../testing/test-setup/src/lib/cliui.mock.ts',
'../../testing/test-setup/src/lib/console.mock.ts',
'../../testing/test-setup/src/lib/reset.mocks.ts',
],
},
});