Date for Desert Code Camp - 2018  Saturday, October 6, 2018 8:00:00 AM - Saturday, October 6, 2018 6:00:00 PM

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

Track

Javascript/Node.js

About the session

The session is approved.

The presenter will not allow another presenter.

There are 54 people interested in this session.

Presenters

Nick Klepinger

Scheduled

Room
IRN-222
Time
1:00 PM - 2:00 PM
Calendar File
 Download

Files

Heads up!  Log in to sign up to teach or attend this session.
Edit Session