#testing #react with #jest, jest-axe, and react-testing-library
▻https://hackernoon.com/testing-react-with-jest-axe-and-react-testing-library-accessibility-34b9
Testing React applications with jest, jest-axe, and react-testing-libraryjest and react-testing-library logosjest and react-testing-library are an increasingly used tooling pairing to test React components. We will briefly look at the differences between the two before looking at some high level examples, and how straightforward it is to add jest-axe to integrate aXe automated #accessibility testing.JestJest is a JavaScript unit testing framework, developed by Facebook to test services and React applications.jest acts as a test runner, assertion library, and mocking library.jest also provides Snapshot testing, the ability to create a rendered ‘snapshot’ of a component and compare it to a previously saved ‘snapshot’. The test will fail if the two do not match. We will talk about the pros and (...)