illustration for React Testing Cookbook
free

React Testing Cookbook

Instructor

Trevor Miller

38m closed-captioning
·
13 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.0
2202
people completed
Published 9 years ago
|
Updated 3 years ago

The definition of "legacy code" can be described simply as "code that doesn't have tests." Code you just wrote, 5 minutes ago? Legacy code. Code that can't be refactored, but only changed.

How do we prevent the mountain of legacy code that most projects become?

A solid testing strategy.

React apps are no different, and can be tested simply if you know some core principles.

In this course we will take a look at testing React applications. From getting setup and running tests, all the way through testing Redux enabled React applications.

Free Community Resource

A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Despite it is a little old, and I wouldn't test with Mocha in 2020, yet core principles are still relevant.

    Avraham Markov
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    very practical, I found what I was looking for, just a simple course to understood how testing was done before testing library, and examples of shallow rendering. thanks Trevor

    Alejandro Paz
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Can you take a moment to let us know what you expected from this course?

    Two might have been a bit harsh! I was just slightly more knowledgeable than this in TDD and might have a different test philosophy.

    I guess I was looking for something with more depth :

    • Unit tests
    • Integration tests
    • E2E tests
    • Mock, etc.
    Marc-Antoine Ferland
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    that the videos where short and clear :)

    Learner
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Awesome!!! Brief, concise and very easy to understand. Many thanks for this.

    Learner
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    Testing an all-React front-end app, plus looking into the Redux testing for other apps.

    Holden Mitchell
    6 years ago