Example Repo (ReactJS, Jest, Enyzme and Snapshot Testing)
Tutorials
- https://scotch.io/tutorials/testing-react-components-with-enzyme-and-jest
- https://www.sitepoint.com/test-react-components-jest/
- https://egghead.io/lessons/javascript-test-javascript-with-jest
- https://egghead.io/courses/test-react-components-with-enzyme-and-jest
- https://egghead.io/courses/react-testing-cookbook
Enzyme with Mocha
Jest
- https://jestjs.io/docs/en/getting-started.html
- https://jestjs.io/docs/en/using-matchers
- https://jestjs.io/docs/en/timer-mocks
- https://jestjs.io/docs/en/manual-mocks
- https://jestjs.io/docs/en/tutorial-react
Snapshot Testing with Jest
- Snapshot testing: https://jestjs.io/docs/en/snapshot-testing
- When to use snapshot testing - http://benmccormick.org/2016/09/19/testing-with-jest-snapshots-first-impressions/
- video - https://egghead.io/lessons/javascript-use-jest-s-snapshot-testing-feature?pl=testing-javascript-with-jest-a36c4074
- Example: