소스 검색

fix: flaky test

Fela Maslen 5 년 전
부모
커밋
d3d2b01a7d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      gmus-web/src/hooks/request.spec.tsx

+ 1 - 2
gmus-web/src/hooks/request.spec.tsx

@@ -67,9 +67,8 @@ describe(useRequestCallback.name, () => {
       unmount();
     });
 
+    // eslint-disable-next-line jest/prefer-expect-assertions
     it('should set the response and loading state back to false', async () => {
-      expect.assertions(3);
-
       const { getByTestId, unmount } = setupRequest();
 
       await waitFor(() => {