Rethinking Testing React Applications
Testing React applications has followed a fairly standard pattern for a while now: set up enzyme, shallow render a component, and assert against various aspects of said component. Finally, if you were enough of a glutton for punishment, you'd set up some Selenium tests for end-to-end testing. However, some new tools have come onto the scene recently that have changed how I and others think about testing our applications.
What we'll cover in this session
- Why shallow rendering is still ok, let's just think about why we're using it
- Thinking about tests from the users' perspective with react-testing-library
- Testing with RTL when using react-router
- Using Cypress.io for simple e2e testing
- What to mock/stub in my e2e tests
About the session
The session is approved.
The presenter will not allow another presenter.
There are 54 people interested in this session.
Scheduled
- Room
- IRN-222
- Time
- 1:00 PM - 2:00 PM
- Calendar File
- Download
Edit Session