Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputData test 코드에 api mock server 를 msw 를 이용해서 구현할 것 #17

Open
irrationnelle opened this issue Jul 12, 2021 · 0 comments
Labels
test required Test is needed

Comments

@irrationnelle
Copy link
Owner

원래는 실제로 firebase 에 데이터를 저장하고 해당 값을 가져오는지 진짜 확인하려고 했으나

react-testing-library 가 api 호출을 비동기적으로 기다려주지 않음

그리고 그 비동기적인 호출을 기다려주는 방법을 아직 찾지 못했기 때문에

e2e 테스트에서 실제 firebase 와 통신하도록 하고 react-testing-library 를 이용한 테스트에선 msw 을 이용한 mock 서버를 만들도록 한다

@irrationnelle irrationnelle added the test required Test is needed label Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test required Test is needed
Projects
None yet
Development

No branches or pull requests

1 participant