소스 검색

Fixing the jest

Ananya_Agarwal 1 년 전
부모
커밋
a3d9da04ad
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      desktop/core/src/desktop/js/reactComponents/AlertComponent/AlertComponent.test.tsx

+ 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 () => {