-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvitest.config.ts
More file actions
37 lines (36 loc) · 1.07 KB
/
Copy pathvitest.config.ts
File metadata and controls
37 lines (36 loc) · 1.07 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
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname),
'@web3viz/core': path.resolve(__dirname, 'packages/core/src/index.ts'),
'@web3viz/providers': path.resolve(__dirname, 'packages/providers/src/index.ts'),
'@web3viz/react-graph': path.resolve(__dirname, 'packages/react-graph/src/index.ts'),
'@web3viz/ui': path.resolve(__dirname, 'packages/ui/src/index.ts'),
'@web3viz/utils': path.resolve(__dirname, 'packages/utils/src/index.ts'),
},
},
test: {
globals: true,
environment: 'jsdom',
include: [
'packages/*/src/**/*.test.{ts,tsx}',
'features/**/*.test.{ts,tsx}',
],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'json-summary'],
include: [
'packages/core/src/**',
'packages/providers/src/**',
'packages/utils/src/**',
'features/World/utils/**',
],
exclude: [
'**/*.test.{ts,tsx}',
'**/index.ts',
],
},
},
});