-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathvitest.config.ts
51 lines (45 loc) · 1.33 KB
/
vitest.config.ts
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
45
46
47
48
49
50
51
// Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
coverage: {
exclude: [
'**/*.d.ts',
'**/*.test-d.*',
'**/vitest.config.ts',
'**/rslib.config.ts',
'**/*.bench.js',
'**/*.bench.ts',
'**/dist/**',
'.github/**',
'examples/**',
'packages/**/lib/**',
'packages/**/test/**',
'website/**',
'packages/react/transform/tests/__swc_snapshots__/**',
'packages/rspeedy/create-rspeedy/template-*/**',
// cSpell:disable-next-line
'.lintstagedrc.mjs',
'eslint.config.js',
'packages/tools/canary-release/**',
'packages/web-platform/**',
'packages/webpack/test-tools/**',
'packages/testing-library/test-environment/**',
'packages/react/testing-library/**',
],
},
env: {
RSPACK_HOT_TEST: 'true',
DEBUG: 'rspeedy',
UPDATE_SNAPSHOT:
process.argv.includes('-u') || process.argv.includes('--update')
? 'true'
: 'false',
NO_COLOR: '1',
FORCE_COLOR: '0',
NODE_ENV: 'test',
},
},
});