-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Description
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
The --bail flag does not stop running tests after the first failure.
Steps to reproduce
$ git clone https://github.com/JoshCheek/jest-bug--bail-flag
$ cd jest-bug--bail-flag/
$ npm install
$ npm testWhat is the expected behavior?
Exit the test suite immediately upon the first failing test, the one named "2: fail".
What is the actual behaviour?
It runs the full test suite.
Demo
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
No configuration outside the repo I linked above..
$ npm run exec jest -- --version
v18.1.0
$ node --version
v7.2.1
$ npm --version
3.10.9
$ system_profiler SPSoftwareDataType
Software:
System Software Overview:
System Version: OS X 10.11.6 (15G1004)
Kernel Version: Darwin 15.6.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: Josh’s MacBook Air (2)
User Name: Josh Cheek (josh)
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Time since boot: 19 days 12:03Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
