-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathvitest.config.js
More file actions
29 lines (28 loc) · 820 Bytes
/
vitest.config.js
File metadata and controls
29 lines (28 loc) · 820 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
import { defineConfig } from 'vitest/config';
import { ejsPrecompile } from './vite-plugin-ejs-precompile.js';
export default defineConfig({
plugins: [ejsPrecompile()],
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['./test/setup.js'],
include: ['test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['node_modules', 'dist', 'samples'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'test/',
'dist/',
'samples/',
'demo/',
'**/*.config.js',
'**/*.d.ts',
],
},
},
define: {
global: 'globalThis',
},
});