Created
October 7, 2019 05:03
-
-
Save adyontech/10cf62ebb930917a7800d4013dac1019 to your computer and use it in GitHub Desktop.
Jest-Enzyme notes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enzyme :- creates virtual DOM for testing. | |
has better toolkit, like jquery selectors. | |
- (shallow rendering) render component only one level deep, i.e it will render parent but will keep placeholder for children. | |
- Manipulate values of state and props. | |
Type of test:- | |
unit - integration - acceptance-end-to-end | |
Test behaviour not implementation. | |
Snapshot testing fails when the inner atomosphere is touched. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment