forked from SBoudrias/Inquirer.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (29 loc) · 752 Bytes
/
vitest.config.ts
File metadata and controls
30 lines (29 loc) · 752 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
import { fileURLToPath, URL } from 'node:url';
import { defineConfig, defaultExclude, coverageConfigDefaults } from 'vitest/config';
export default defineConfig({
test: {
exclude: ['integration/**', ...defaultExclude],
coverage: {
provider: 'v8',
all: true,
exclude: [
...coverageConfigDefaults.exclude,
'tools/**',
'packages/inquirer/examples/**',
'packages/demo/**',
'.yarn/**',
'**/*.type.mts',
],
},
testTimeout: 300,
},
resolve: {
alias: [
{
// Resolve @inquirer/* packages to their source code
find: /@inquirer\/(.*)/,
replacement: fileURLToPath(new URL('packages/$1/src', import.meta.url)),
},
],
},
});