We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d237ef commit 43429daCopy full SHA for 43429da
frontend/jest.config.ts
@@ -42,6 +42,7 @@ const config: Config = {
42
},
43
44
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
45
+ setupFiles: ['<rootDir>/jest.tz-setup.ts'],
46
};
47
48
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
frontend/jest.setup.ts
@@ -35,6 +35,3 @@ createMocks();
35
if (typeof window !== 'undefined') {
36
window.HTMLElement.prototype.scrollIntoView = jest.fn();
37
}
38
-
39
-// Pin timezone for deterministic date rendering
40
-process.env.TZ = 'Europe/London';
frontend/jest.tz-setup.ts
@@ -0,0 +1,2 @@
1
+// pin TZ for deterministic date rendering
2
+process.env.TZ = 'Europe/London';
0 commit comments