mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
9b119c3dac
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
35 lines
842 B
JavaScript
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,
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|