mitmproxy/web/jest.config.js
Maximilian Hils 9b119c3dac web: major upgrades
This commit brings a bunch of under-the-hood mitmweb improvements:

 - migrate large parts of the codebase to typescript
 - introduce modern react testing conventions
 - vendor react-codemirror to silence warnings
 - use esbuild for both bundles and tests
 - move from yarn to npm
 - various fixes across the board
2021-06-21 17:51:47 +02:00

35 lines
842 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/filt/filt.js"
],
"collectCoverageFrom": [
"src/js/**/*.{js,jsx,ts,tsx}"
],
"transform": {
"^.+\\.[jt]sx?$": [
"esbuild-jest",
{
"loaders": {
".js": "tsx"
},
"format": "cjs",
"sourcemap": true,
}
]
}
}
}