mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 02:57:19 +00:00
37 lines
928 B
JavaScript
37 lines
928 B
JavaScript
module.exports = async () => {
|
|
|
|
process.env.TZ = 'UTC';
|
|
|
|
return {
|
|
"testEnvironment": "jsdom",
|
|
"testRegex": "__tests__/.*Spec.(js|ts)x?$",
|
|
"roots": [
|
|
"<rootDir>/src/js"
|
|
],
|
|
"unmockedModulePathPatterns": [
|
|
"react"
|
|
],
|
|
"coverageDirectory": "./coverage",
|
|
"coveragePathIgnorePatterns": [
|
|
"<rootDir>/src/js/contrib/",
|
|
"<rootDir>/src/js/filt/",
|
|
"<rootDir>/src/js/components/editors/"
|
|
],
|
|
"collectCoverageFrom": [
|
|
"src/js/**/*.{js,jsx,ts,tsx}"
|
|
],
|
|
"transform": {
|
|
"^.+\\.[jt]sx?$": [
|
|
"esbuild-jest",
|
|
{
|
|
"loaders": {
|
|
".js": "tsx"
|
|
},
|
|
"format": "cjs",
|
|
"sourcemap": true,
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|