-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvitest.config.js
More file actions
44 lines (43 loc) · 1.01 KB
/
vitest.config.js
File metadata and controls
44 lines (43 loc) · 1.01 KB
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
34
35
36
37
38
39
40
41
42
43
44
import { defineConfig } from 'vitest/config';
import wasm from 'vite-plugin-wasm';
import topLevelAwait from 'vite-plugin-top-level-await';
export default defineConfig({
plugins: [
wasm(),
topLevelAwait()
],
test: {
name: 'SWC Macro System Tests',
environment: 'node',
globals: true,
include: ['tests/**/*.{test,spec}.{js,mjs,ts}'],
exclude: ['node_modules', 'dist', 'build', 'target'],
testTimeout: 10000,
hookTimeout: 10000,
teardownTimeout: 10000,
isolate: true,
pool: 'forks',
poolOptions: {
forks: {
singleFork: true
}
},
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['tests/**/*.{js,ts}'],
exclude: ['tests/**/*.{test,spec}.{js,ts}']
},
outputFile: {
html: './test-results/vitest-report.html',
json: './test-results/vitest-results.json'
},
silent: false,
verbose: true,
watch: false
},
esbuild: {
target: 'node18'
},
optimizeDeps: false
});