...

/

Commands for Testing: React Applications

Commands for Testing: React Applications

Learn how to automate React application testing.

Introduction

In previous chapters, we’ve seen that we can run tests with pytest and Jest, and compile documentation with Sphinx all from the command line. Therefore, we can automate them. If a test fails, the script will fail, and the commit will be rejected.

It’s useful to know that the Git hook scripts will be executed with the repository’s root as their working directory regardless of where in the repository the git commit command was ...