Run tests in continue mode.
In continue mode, all passed test suites will be skipped and only run the remaining test suites. It helps you focus on what's getting everything to pass once.
This is especially useful if you are dealing with some fragile tests or systems.
While you may introduce regression along the way, let's deal with them later.
It works great with bail
.
Requires jest@23+
.
To use jest-watch-continue
,
add it to the watchPlugins
section of the Jest configuration:
{
"jest": {
"watchPlugins": [
"jest-watch-continue", // or
["jest-watch-continue", {
"key": "n",
"prompt": "start continue mode"
}]
]
}
}
In watch mode, press n
to starts or ends continue mode.
Watch Usage
› Press a to run all tests.
› Press f to run only failed tests.
› Press q to quit watch mode.
› Press n to start continue mode.
› Press p to filter by a filename regex pattern.
› Press t to filter by a test name regex pattern.
› Press Enter to trigger a test run.