2021-06-20 00:12:59 +00:00
|
|
|
module.exports = async () => {
|
2021-06-09 10:00:11 +00:00
|
|
|
|
2021-06-20 00:12:59 +00:00
|
|
|
process.env.TZ = 'UTC';
|
|
|
|
|
|
|
|
return {
|
|
|
|
"testEnvironment": "jsdom",
|
|
|
|
"testRegex": "__tests__/.*Spec.(js|ts)x?$",
|
|
|
|
"roots": [
|
|
|
|
"<rootDir>/src/js"
|
|
|
|
],
|
|
|
|
"unmockedModulePathPatterns": [
|
|
|
|
"react"
|
|
|
|
],
|
|
|
|
"coverageDirectory": "./coverage",
|
|
|
|
"coveragePathIgnorePatterns": [
|
2021-08-20 12:32:12 +00:00
|
|
|
"<rootDir>/src/js/filt/filt.js",
|
|
|
|
"<rootDir>/src/js/filt/command.js"
|
2021-06-20 00:12:59 +00:00
|
|
|
],
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"src/js/**/*.{js,jsx,ts,tsx}"
|
|
|
|
],
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.[jt]sx?$": [
|
|
|
|
"esbuild-jest",
|
|
|
|
{
|
|
|
|
"loaders": {
|
|
|
|
".js": "tsx"
|
|
|
|
},
|
|
|
|
"format": "cjs",
|
|
|
|
"sourcemap": true,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|