From 0bf501a14a4519df6ddef8684d0a51093377c65d Mon Sep 17 00:00:00 2001 From: yasserfaraazkhan Date: Mon, 26 Aug 2024 23:14:00 +0530 Subject: [PATCH] Mock date.now in flaky app/actions/team tests (#8171) --- app/actions/local/team.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/actions/local/team.test.ts b/app/actions/local/team.test.ts index eb6a0aee7..3790cd2cf 100644 --- a/app/actions/local/team.test.ts +++ b/app/actions/local/team.test.ts @@ -280,6 +280,7 @@ describe('addSearchToTeamSearchHistory', () => { operator.handleTeamSearchHistory = jest.fn(); operator.batchRecords = jest.fn(); + jest.spyOn(Date, 'now').mockImplementation(() => 1724657520366); }); afterEach(async () => {