Skip to content

Commit

Permalink
Update 03-assertions.md
Browse files Browse the repository at this point in the history
Adding text in assertion planning in order to inform about ava assertion not stopping even when they fail
linked to issue 
(document that ava assertions don't throw avajs#2624)
  • Loading branch information
JigmetAvinash committed Dec 4, 2023
1 parent 0492d32 commit 15110bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/03-assertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Assertion plans ensure tests only pass when a specific number of assertions have

If you do not specify an assertion plan, your test will still fail if no assertions are executed. Set the `failWithoutAssertions` option to `false` in AVA's [`package.json` configuration](./06-configuration.md) to disable this behavior.

Note that, unlike [`tap`](https://www.npmjs.com/package/tap) and [`tape`](https://www.npmjs.com/package/tape), AVA does *not* automatically end a test when the planned assertion count is reached.
Note that, unlike [`tap`](https://www.npmjs.com/package/tap) and [`tape`](https://www.npmjs.com/package/tape), AVA does *not* automatically end a test when the planned assertion count is reached. Note that ava assertions *don't* stop the test when they fail for better analysis of your code

These examples will result in a passed test:

Expand Down

0 comments on commit 15110bf

Please sign in to comment.