Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
build
public Add files via upload Jan 6, 2019
src
package-lock.json
package.json Add files via upload Jan 6, 2019
readme.md

readme.md

Snapshot testing in React Components with Jest

Snapshot testing in React Components with Jest

In this tutorial we are going to learn how to perform snapshot testing in react application. Jest is a JavaScript unit testing framework, used by Facebook to test services and React applications.Jest acts as a test runner, assertion library, and mocking library. Snapshot testing is a pretty cool feature offered by Jest. It can memorize how your UI components are rendered, and compare it to the current test, raising an error if there’s a mismatch.