2
0
mirror of https://github.com/tusen-ai/naive-ui.git synced 2025-04-18 14:50:56 +08:00

fix: unit tests

This commit is contained in:
07akioni 2022-04-19 00:37:39 +08:00
parent 5ecea9e9e9
commit e5f3e2f6a2
2 changed files with 10 additions and 1 deletions

@ -62,7 +62,10 @@ module.exports = {
// A set of global variables that need to be available in all test environments
globals: {
__DEV__: true
__DEV__: true,
'ts-jest': {
tsconfig: 'tsconfig.test.json'
}
},
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.

6
tsconfig.test.json Normal file

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"jsx": "react"
}
}