Skip to content

Testing in --watch mode

In most UI testing libraries, the --watch option is often supported. Under this mode, the framework will continuously look for files changed and run the relevant tests based on these files.

In Jest:

jest --watch

You can also --watch and rerun for specific test files ``

jest --watch path/to/your/file.test.js