Skip to content

How to stop the running test script when one of the expect is fail? #1508

Answered by keithamus
BrendaAspen asked this question in Support
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BrendaAspen
Comment options

Answer selected by keithamus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1507 on February 22, 2023 18:02.