forked from leather-io/extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
27 lines (26 loc) · 791 Bytes
/
vitest.config.js
File metadata and controls
27 lines (26 loc) · 791 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
import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: 'src/**/*.spec.{ts,tsx}',
coverage: {
provider: 'istanbul',
reporter: ['text', 'json-summary', 'json', 'html'],
},
globals: true,
environment: 'node',
setupFiles: './tests-legacy/unit-test.setup.js',
deps: { interopDefault: true },
},
resolve: {
alias: {
'@shared': path.resolve('./src/shared'),
'@background': path.resolve('./src/background'),
'@content-scripts': path.resolve('./src/content-scripts'),
'@inpage': path.resolve('./src/inpage'),
'@app': path.resolve('./src/app'),
'@tests': path.resolve('./tests'),
'@tests-legacy': path.resolve('./tests-legacy'),
},
},
});