mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-23 21:30:04 +00:00
8f13293771
Co-authored-by: Maximilian Hils <git@maximilianhils.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
30 lines
846 B
JavaScript
30 lines
846 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,
|
|
},
|
|
],
|
|
},
|
|
};
|
|
};
|