forked from pokeclicker/pokeclicker
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.js
More file actions
31 lines (29 loc) · 781 Bytes
/
vitest.config.js
File metadata and controls
31 lines (29 loc) · 781 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
/// <reference types="vitest/config" />
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
{
name: 'a-vitest-plugin-that-changes-config',
config: () => ({
test: {
setupFiles: 'vitest.setup.js',
},
}),
},
],
test: {
globals: true,
environment: 'jsdom',
globalSetup: 'vitest.global.setup.js',
include: [
'src/modules/**/__tests__/**/*.[jt]s?(x)',
'src/modules/**/?(*.)+(spec|test).[tj]s?(x)',
],
coverage: {
enabled: true,
all: true,
include: ['src/modules/**/*.{ts,tsx}'],
exclude: [],
},
},
});