mitmproxy/web/jest.config.js

36 lines
890 B
JavaScript
Raw Normal View History

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": [
2021-08-20 12:32:12 +00:00
"<rootDir>/src/js/filt/filt.js",
"<rootDir>/src/js/filt/command.js"
],
"collectCoverageFrom": [
"src/js/**/*.{js,jsx,ts,tsx}"
],
"transform": {
"^.+\\.[jt]sx?$": [
"esbuild-jest",
{
"loaders": {
".js": "tsx"
},
"format": "cjs",
"sourcemap": true,
}
]
}
}
}