Skip to content

Commit a0b6d32

Browse files
committed
msw-> handlersUtils.ts작성중
1 parent 70cadf1 commit a0b6d32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/__mocks__/handlersUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Event } from '../types';
22

33
// ! Hard
44
// ! 이벤트는 생성, 수정 되면 fetch를 다시 해 상태를 업데이트 합니다. 이를 위한 제어가 필요할 것 같은데요. 어떻게 작성해야 테스트가 병렬로 돌아도 안정적이게 동작할까요?
5+
// -> 병렬로 안정적이게 동작한다는건 여러개의 테스트를 서로 영향을 주지 않고, 독립적으로 결과를 예측가능하게 만들어주는것.
56
// ! 아래 이름을 사용하지 않아도 되니, 독립적이게 테스트를 구동할 수 있는 방법을 찾아보세요. 그리고 이 로직을 PR에 설명해주세요.
67
export const setupMockHandlerCreation = (initEvents = [] as Event[]) => {};
78

0 commit comments

Comments
 (0)