How to stop the running test script when one of the expect is fail? #1508
Answered
by
keithamus
BrendaAspen
asked this question in
Support
-
How to stop the running test script when one of the expect() is fail? For example, I have 3 expect() items. I want to stop the running test script at once when I got a fail on item 2. |
Beta Was this translation helpful? Give feedback.
Answered by
keithamus
Feb 22, 2023
Replies: 1 comment 1 reply
-
This will depend on your test runner, not Chai. For example if you're using Mocha you can pass the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
keithamus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will depend on your test runner, not Chai. For example if you're using Mocha you can pass the
--bail
flag which will stop running any tests after the first failure.