Running tests and producing a production-ready build

With the project we have set up in the previous lessons, we are now going to learn how to run tests within the project and how to create a production-ready build.

Running tests #

The App component has an example test in the App.test.tsx, which checks that the component renders without crashing. This test is the Jest test which we will learn about later in this course.

The tests can be run in the Terminal by the following npm command:

npm test

The tests will then be run and the results output in the Terminal:

Get hands-on with 1200+ tech skills courses.