We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689b4bf commit b7eebd4Copy full SHA for b7eebd4
frontend/src/pages/__tests__/Tokens.test.tsx
@@ -33,9 +33,9 @@ describe('Tokens Component', () => {
33
34
const originalSetInterval = globalThis.setInterval;
35
const originalClearInterval = globalThis.clearInterval;
36
- globalThis.setInterval = ((handler: (...args: unknown[]) => void) => {
+ globalThis.setInterval = ((() => {
37
return { __fake: 'interval' } as unknown as NodeJS.Timeout;
38
- }) as typeof setInterval;
+ }) as unknown) as typeof setInterval;
39
globalThis.clearInterval = (() => undefined) as typeof clearInterval;
40
restoreIntervalMocks = () => {
41
globalThis.setInterval = originalSetInterval;
0 commit comments