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

[HW2] 질문있습니다. #119

Open
ars-ki-00 opened this issue Oct 10, 2019 · 1 comment
Open

[HW2] 질문있습니다. #119

ars-ki-00 opened this issue Oct 10, 2019 · 1 comment
Labels
HW2 question Further information is requested

Comments

@ars-ki-00
Copy link

제가 wrtie라는 state가 있고, A라는 함수가 write라는 state를 true로 바꿔줍니다.
그리고 렌더링을 할 때 write가 true면 button을 생성하고, false면 생성하지 않습니다.
테스팅 할 때, A함수를 실행시키고 expect로 button의 개수를 확인하면 test를 fail하는데,
단순히 write이 true인지 확인하면 test를 성공합니다.
혹시 이런 현상이 발생하는 특별한 이유가 있는것인가요??

@ktaebum ktaebum added HW2 question Further information is requested labels Oct 10, 2019
@ktaebum
Copy link
Contributor

ktaebum commented Oct 10, 2019

enzymejs/enzyme#1229

이 이슈와 관련이 있을수도 있는데요
state를 transition 시킨 후
.update()forceUpdate() 등등을 한 번 불러 보시면 해결이 될 수도 있을 것 같습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HW2 question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants