Enable automatic reset of mock state

This commit is contained in:
2025-07-21 19:41:45 -04:00
parent 883dc9ef6e
commit 321e7a7fa9
2 changed files with 3 additions and 6 deletions

View File

@@ -8,12 +8,9 @@ describe("TimedApiBasedRepositoryLoader", () => {
let timedLoader: TimedApiBasedRepositoryLoader;
let spies: any;
beforeAll(() => {
beforeEach(() => {
jest.useFakeTimers();
jest.spyOn(global, "setTimeout");
});
beforeEach(() => {
resetGlobalFetchMockJson();
const mockLoader = new ApiBasedShuttleRepositoryLoader(