forked from ant-design/ant-design-web3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.mts
39 lines (37 loc) · 1.08 KB
/
vitest.config.mts
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
import path from 'path';
import { defineConfig } from 'vitest/config';
import svgr from 'vite-plugin-svgr';
const resolve = (src: string) => {
return path.resolve(__dirname, src);
};
export default defineConfig({
plugins: [
svgr({
svgrOptions: {
exportType: 'default',
},
include: ['**/*.svg'],
}),
],
resolve: {
alias: {
'@ant-design/web3': resolve('./packages/web3/src/index'),
'@ant-design/web3-icons': resolve('./packages/icons/src/index'),
'@ant-design/web3-assets': resolve('./packages/assets/src/index'),
'@ant-design/web3-wagmi': resolve('./packages/wagmi/src/index'),
'@ant-design/web3-common': resolve('./packages/common/src/index'),
},
},
test: {
environment: 'jsdom',
include: ['./packages/**/*.test.{ts,tsx}'],
setupFiles: ['./tests/setup.ts'],
reporters: ['default'],
coverage: {
include: ['packages/*/src/**/*.{tx,tsx}'],
exclude: ['**/demos/*.tsx'],
reporter: ['json-summary', ['text', { skipFull: true }], 'cobertura', 'html'],
},
testTimeout: 3e4,
},
});