module.exports = { bail: 0, // 有测试错误后就停止错误 moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], preset: 'ts-jest', transform: { "^.+\\.ts?$": "ts-jest" }, testEnvironment: "node", rootDir: './', "moduleDirectories": [ "node_modules", "src" ], moduleNameMapper: { "^@src/(.*)$": "/src/$1", "^@root/(.*)$": "/../$1", "^@classes/(.*)$": "/../base-lib/src/classes/$1", "^@util/(.*)$": "/../base-lib/src/util/$1", "^@core/(.*)$": "/../base-lib/src/core/$1", "^@core-guards/(.*)$": "/../base-lib/src/core-guards/$1", "^@core-models/(.*)$": "/../base-lib/src/core-models/$1", }, transformIgnorePatterns: ['/node_modules/'], "testRegex": "\\.spec\\.ts", "verbose": true };