-
Notifications
You must be signed in to change notification settings - Fork 7
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
App test snapshot is redundant #59
Comments
Okay... so I've never done much React testing beyond the basic snapshot tests, and I'm now reading up on a concept called "shallow rendering", where basically it verifies that child components are called but doesn't bother to actually render them. Today I Learned™️ I'll look into how to implement this hopefully by the weekend or so. Always happy to dig into a new skill! |
would it be possible with just a few |
I think this StackOverflow answer describes what I was thinking... |
App.test.js.snap is redundant since we have tests for each component. It is unnecessary for test snapshots to be updated in multiple places when components are modified
We will need to refactor App.test.js to eliminate the need for App.test.js.snap
App.test.js is still needed to test the order of the components on the page
The text was updated successfully, but these errors were encountered: