I am using Jest for testing.
What I want, is to stop executing the current test suite when a test in that test suite fails.
The option --bail is
--bail
I guess that other tests in that suite depend on all previous tests be successful. This is a bad practice in unit testing. Try using beforeEach and afterEach to decouple individual test cases within a suite, so that they don't rely on each other.
beforeEach
afterEach