This release is 1 version behind 1.0.11 — the latest version of @std/assert. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Common assertion functions, especially useful for testing
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
100%
Published
2 months ago (1.0.10)
Package root
- LICENSE1 KB
- almost_equals.ts2 KB
- almost_equals_test.ts2 KB
- array_includes.ts2 KB
- array_includes_test.ts2 KB
- assert.ts680 B
- assert_test.ts404 B
- assertion_error.ts842 B
- assertion_error_test.ts391 B
- deno.json1 KB
- equal.ts6 KB
- equal_test.ts14 KB
- equals.ts2 KB
- equals_test.ts5 KB
- exists.ts937 B
- exists_test.ts1 KB
- fail.ts598 B
- fail_test.ts348 B
- false.ts776 B
- false_test.ts564 B
- greater.ts1016 B
- greater_or_equal.ts1 KB
- greater_or_equal_test.ts470 B
- greater_test.ts467 B
- instance_of.ts2 KB
- instance_of_test.ts4 KB
- is_error.ts2 KB
- is_error_test.ts2 KB
- less.ts967 B
- less_or_equal.ts1 KB
- less_or_equal_test.ts283 B
- less_test.ts270 B
- match.ts906 B
- match_test.ts836 B
- mod.ts1 KB
- not_equals.ts1 KB
- not_equals_test.ts1 KB
- not_instance_of.ts1 KB
- not_instance_of_test.ts1 KB
- not_match.ts926 B
- not_match_test.ts827 B
- not_strict_equals.ts1 KB
- not_strict_equals_test.ts815 B
- object_match.ts6 KB
- object_match_test.ts11 KB
- rejects.ts4 KB
- rejects_test.ts4 KB
- strict_equals.ts2 KB
- strict_equals_test.ts2 KB
- string_includes.ts954 B
- string_includes_test.ts1 KB
- throws.ts3 KB
- throws_test.ts4 KB
- unimplemented.ts621 B
- unimplemented_test.ts471 B
- unreachable.ts591 B
- unreachable_test.ts371 B
- unstable_never.ts3 KB
- unstable_never_test.ts715 B