Skip to content

Commit

Permalink
feat(sdk-analytics) fix date test
Browse files Browse the repository at this point in the history
  • Loading branch information
oidacra committed Dec 19, 2024
1 parent ff8947f commit 975514f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import {
describe('Analytics Utils', () => {
let mockLocation: Location;

beforeAll(() => {
jest.useFakeTimers({ doNotFake: [] });
jest.setSystemTime(new Date('2024-01-01T00:00:00Z'));
});

beforeEach(() => {
// Mock Location object
mockLocation = {
Expand Down

0 comments on commit 975514f

Please sign in to comment.