mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 10:18:26 +00:00
* 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>
30 lines
978 B
JavaScript
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",
|
|
};
|
|
};
|