mitmproxy/web/jest.config.js
Matteo Luppi 40f345204c
Web: Show Local timezone in the Timing tab (#7804)
* show local datetime

* Add TZ=UTC in test script

* update changelog

* review changes

* [autofix.ci] apply automated fixes

* review changes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-08 08:08:30 +02:00

30 lines
978 B
JavaScript

/** @returns {Promise<import('jest').Config>} */
module.exports = async () => {
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,
},
],
},
setupFilesAfterEnv: ["<rootDir>/setup-jest.js"],
globalSetup: "<rootDir>/setup-global-jest.js",
};
};