Skip to content

Commit bd8cca4

Browse files
VIA-769 MD/EO Fixed the failing test by setting a fake date in Vaccine.test
1 parent 31f28d2 commit bd8cca4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/_components/vaccine/Vaccine.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ describe("Any vaccine page", () => {
8787
const mockedConfig = config as ConfigMock;
8888

8989
beforeEach(() => {
90+
jest.useFakeTimers().setSystemTime(new Date("2026-01-30T09:00:00Z"));
9091
const defaultConfig = configBuilder()
9192
.withCampaigns(
9293
Campaigns.fromJson(

0 commit comments

Comments
 (0)