-
Notifications
You must be signed in to change notification settings - Fork 7
/
jest.config.js
25 lines (25 loc) · 919 Bytes
/
jest.config.js
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
const path = require('path')
module.exports = {
verbose: true,
setupTestFrameworkScriptFile: path.resolve(__dirname,'spec','setup.js'),
moduleNameMapper: {
"^helper" : "<rootDir>/spec/helper.ts",
"^core/game$" : "<rootDir>/spec/mocks/game.mock.ts",
"^electron$" : "<rootDir>/spec/mocks/electron.mock.ts",
"^common/store$" : "<rootDir>/spec/mocks/store.mock.ts",
"^main/(.*)$" : "<rootDir>/src/main/$1",
"^common/(.*)$" : "<rootDir>/src/common/$1",
"^components/(.*)$" : "<rootDir>/src/renderer/components/$1",
"^core/(.*)$" : "<rootDir>/src/renderer/core/$1",
"^states/(.*)$" : "<rootDir>/src/renderer/states/$1",
"^ui/(.*)$" : "<rootDir>/src/renderer/ui/$1"
},
"moduleFileExtensions": [
"ts",
"js"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testMatch": ["**/spec/**/*.spec.(ts|tsx|js)"]
};