ava/test-types
Mark Wubben b6fbd5847a Make assertions throw
Fixes #3201.

Assertions now throw a `TestFailure` error when they fail. This error is not exported or documented and should not be used or thrown manually. You cannot catch this error in order to recover from a failure, use `t.try()` instead.

All assertions except for `throws` and `throwsAsync` now return `true` when they pass. This is useful for some of the assertions in TypeScript where they can be used as a type guard.

Committing a failed `t.try()` result now also throws.
2023-10-22 21:40:24 +02:00
..
import-in-cts Make assertions throw 2023-10-22 21:40:24 +02:00
module Make assertions throw 2023-10-22 21:40:24 +02:00
.gitignore Rely on TypeScript 4.7 and update integration + tests 2022-07-10 18:30:04 +02:00