Selaa lähdekoodia

Fixing the jest

Ananya_Agarwal 1 vuosi sitten
vanhempi
commit
a3d9da04ad

+ 1 - 0
desktop/core/src/desktop/js/reactComponents/AlertComponent/AlertComponent.test.tsx

@@ -21,6 +21,7 @@ import userEvent from '@testing-library/user-event';
 import huePubSub from '../../utils/huePubSub';
 
 import AlertComponent from './AlertComponent';
+jest.useFakeTimers(); // Enable fake timers
 
 describe('AlertComponent', () => {
   test('it should show a global error message', async () => {