forked from typescript-eslint/typescript-eslint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.base.mts
More file actions
33 lines (24 loc) · 798 Bytes
/
vitest.config.base.mts
File metadata and controls
33 lines (24 loc) · 798 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
31
32
33
import type { ViteUserConfig } from 'vitest/config';
import { coverageConfigDefaults } from 'vitest/config';
export const vitestBaseConfig = {
test: {
coverage: {
exclude: [...coverageConfigDefaults.exclude, '**/fixtures/'],
include: ['src/**/*.{ts,tsx,js,jsx}'],
reporter: process.env.GITHUB_ACTIONS
? [['lcov'], ['text'], ['text-summary']]
: [['lcov']],
},
globals: true,
include: ['**/*.test.?(c|m)ts?(x)'],
reporters: process.env.GITHUB_ACTIONS
? [['default', { summary: false }], ['github-actions']]
: [['default']],
setupFiles: ['console-fail-test/setup'],
testTimeout: 10_000,
typecheck: {
include: ['**/*.test-d.?(c|m)ts?(x)'],
},
watch: false,
},
} as const satisfies ViteUserConfig;