This repository has been archived by the owner on May 25, 2023. It is now read-only.
Replies: 1 comment 2 replies
-
Actually other way around, shallow, mount and render provided by |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The dependencies on
enzyme
and also the unofficialenzyme
adapter appear to be indirectly used in these files:https://github.com/open-sauced/open-sauced/blob/bf2e3c3c36f890b1ef132e13b4a0cf71789ca223/src/setupTestFramework.js
https://github.com/open-sauced/open-sauced/blob/93654fb65801283385cc423a3e04caced0353db0/src/tests/Dashboard.test.js
https://github.com/open-sauced/open-sauced/blob/93654fb65801283385cc423a3e04caced0353db0/src/tests/Repository.test.js
So am I interpreting correctly that the only use of enzyme is for the snapshot testing? And if so, what I would wonder about is the use case. If the snapshots don't move with the repo and only get generated on tests being run, would that not mean that these tests would only fail if the user followed these steps:
So all that said - do these tests make sense? If not, can we shed the enzyme dependency? I see jest and @testing-library in use elsewhere in the codebase.
Beta Was this translation helpful? Give feedback.
All reactions