26 lines
810 B
JavaScript
26 lines
810 B
JavaScript
|
|
module.exports = {
|
||
|
|
moduleFileExtensions: ['js', 'json', 'ts'],
|
||
|
|
rootDir: '.',
|
||
|
|
testRegex: '.*\.spec\.ts$',
|
||
|
|
transform: {
|
||
|
|
'^.+\.(t|j)s$': 'ts-jest',
|
||
|
|
},
|
||
|
|
collectCoverageFrom: [
|
||
|
|
'src/**/*.(t|j)s',
|
||
|
|
],
|
||
|
|
coverageDirectory: './coverage',
|
||
|
|
testEnvironment: 'node',
|
||
|
|
moduleNameMapper: {
|
||
|
|
'^@wwj/(.*)$': '<rootDir>/src/$1',
|
||
|
|
'^@wwjCore$': '<rootDir>/src/core/base/index.ts',
|
||
|
|
'^@wwjCore/(.*)$': '<rootDir>/src/core/$1',
|
||
|
|
'^@wwjConfig$': '<rootDir>/src/config/index.ts',
|
||
|
|
'^@wwjConfig/(.*)$': '<rootDir>/src/config/$1',
|
||
|
|
'^@wwjCommon$': '<rootDir>/src/common/index.ts',
|
||
|
|
'^@wwjCommon/(.*)$': '<rootDir>/src/common/$1',
|
||
|
|
'^@wwjVendor$': '<rootDir>/src/vendor/index.ts',
|
||
|
|
'^@wwjVendor/(.*)$': '<rootDir>/src/vendor/$1',
|
||
|
|
},
|
||
|
|
setupFilesAfterEnv: [],
|
||
|
|
testTimeout: 30000,
|
||
|
|
};
|