mitmproxy/web/jest.config.js
Alex Gershberg 8f13293771
Add prettier to mitmweb (#5985)
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-03-12 17:50:15 +01:00

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,
},
],
},
};
};