Skip to content

Commit

Permalink
tests: update
Browse files Browse the repository at this point in the history
  • Loading branch information
prc5 committed Dec 29, 2024
1 parent 2c527bb commit b2c5f0b
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ describe("Cache [ Garbage Collector ]", () => {
});
jest.resetAllMocks();
jest.clearAllMocks();

cacheData.requestTimestamp = +new Date();
cacheData.responseTimestamp = +new Date();
cacheData.addedTimestamp = +new Date();
cacheData.triggerTimestamp = +new Date();
});

describe("when garbage collector is triggered", () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/core/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ if (!global.AbortController) {
Object.defineProperties(globalThis, {
BroadcastChannel: { value: BroadcastChannel },
});

jest.retryTimes(2);
2 changes: 0 additions & 2 deletions packages/devtools-plugin/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ import "@testing-library/jest-dom";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
global.IS_REACT_ACT_ENVIRONMENT = true;

jest.retryTimes(2);
2 changes: 0 additions & 2 deletions packages/devtools-react/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ import "@testing-library/jest-dom";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
global.IS_REACT_ACT_ENVIRONMENT = true;

jest.retryTimes(2);
2 changes: 0 additions & 2 deletions packages/plugin-eslint/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ import "@testing-library/jest-dom";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
global.IS_REACT_ACT_ENVIRONMENT = true;

jest.retryTimes(2);
2 changes: 0 additions & 2 deletions packages/react/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ import "@testing-library/jest-dom";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
global.IS_REACT_ACT_ENVIRONMENT = true;

jest.retryTimes(2);
2 changes: 0 additions & 2 deletions packages/sockets/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ import EventSource from "eventsourcemock";
Object.defineProperty(window, "EventSource", {
value: EventSource,
});

jest.retryTimes(2);
2 changes: 0 additions & 2 deletions packages/testing/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Object.defineProperty(window, "EventSource", {
value: EventSource,
});

jest.retryTimes(2);

if (!global.AbortController) {
global.AbortController = AbortController as any;
}

0 comments on commit b2c5f0b

Please sign in to comment.