ava/test-types/import-in-cts
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
..
assertions-as-type-guards.cts Make assertions throw 2023-10-22 21:40:24 +02:00
context.cts Make test-types work with tsc and XO 2023-07-03 15:46:29 +02:00
deep-equal.cts Make test-types work with tsc and XO 2023-07-03 15:46:29 +02:00
implementation-result.cts Make test-types work with tsc and XO 2023-07-03 15:46:29 +02:00
like.cts Make test-types work with tsc and XO 2023-07-03 15:46:29 +02:00
macros.cts Make test-types work with tsc and XO 2023-07-03 15:46:29 +02:00
plugin.cts Rely on TypeScript 4.7 and update integration + tests 2022-07-10 18:30:04 +02:00
snapshot.cts Make test-types work with tsc and XO 2023-07-03 15:46:29 +02:00
teardown.cts Make test-types work with tsc and XO 2023-07-03 15:46:29 +02:00
throws.cts Make assertions throw 2023-10-22 21:40:24 +02:00
timeout.cts Add t.timeout.clear() to restore default behavior 2023-07-03 15:46:29 +02:00
try-commit.cts Make test-types work with tsc and XO 2023-07-03 15:46:29 +02:00