I want to re-run the whole test suite when any test has status failed. I only found how to re-run the test case but I want to re-run the whole test suite.
jest command gives an exit code 1 if a test failed, 0 if all tests succeeded.
You could create a bash shell script that looks something like this:
#!/bin/bash jest if [ $? -eq 0 ] then echo "The tests succeeded" exit 0 else echo "The tests failed, running jest again" jest fi