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 16:38:22 +00:00
|
|
|
"<rootDir>/src/js/contrib/",
|
|
|
|
"<rootDir>/src/js/filt/",
|
|
|
|
"<rootDir>/src/js/components/editors/"
|
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,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|