Skip to content

Instantly share code, notes, and snippets.

@adyontech
Created October 7, 2019 05:03
Show Gist options
  • Save adyontech/10cf62ebb930917a7800d4013dac1019 to your computer and use it in GitHub Desktop.
Save adyontech/10cf62ebb930917a7800d4013dac1019 to your computer and use it in GitHub Desktop.
Jest-Enzyme notes.
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