2020-10-17 23:53:33 +00:00
|
|
|
module.exports = {
|
2021-04-21 00:42:32 +00:00
|
|
|
'moduleNameMapper': {
|
|
|
|
'^js/(.*)': '<rootDir>/js/$1',
|
2021-05-25 19:08:10 +00:00
|
|
|
'^test/(.*)': '<rootDir>/test/$1',
|
2021-04-21 00:42:32 +00:00
|
|
|
},
|
2020-11-07 16:54:49 +00:00
|
|
|
'roots': [
|
|
|
|
'js/',
|
|
|
|
'test/',
|
|
|
|
],
|
|
|
|
'testMatch': [
|
|
|
|
'**/?(*.)+(spec|test).+(ts|js)'
|
|
|
|
],
|
2021-05-25 19:08:10 +00:00
|
|
|
|
2020-11-07 16:54:49 +00:00
|
|
|
'transform': {
|
|
|
|
'^.+\\.js$': 'babel-jest',
|
|
|
|
'^.+\\.ts$': 'ts-jest'
|
|
|
|
},
|
2021-05-25 19:08:10 +00:00
|
|
|
'setupFilesAfterEnv': [
|
|
|
|
'<rootDir>/test/jest-setup.js'
|
|
|
|
],
|
|
|
|
'coveragePathIgnorePatterns': [
|
|
|
|
'/node_modules/',
|
|
|
|
'/js/roms/',
|
|
|
|
'/test/',
|
|
|
|
]
|
2021-04-21 00:42:32 +00:00
|
|
|
};
|