assertion-error
npmv2.0.1TypeScriptError constructor for test and validation frameworks that implements standardized AssertionError specification.
Overview
assertion-error is an npm package that error constructor for test and validation frameworks that implements standardized AssertionError specification. The latest version is 2.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need error constructor for test and validation frameworks that implements standardized AssertionError specification and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of assertion-error.
Used by
Popular packages that depend on assertion-error.
Alternatives to assertion-error
Jest's expect matchers as a Chai plugin
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Get the first fulfilled promise that satisfies the provided testing function
Get details about the current Continuous Integration environment
invariant
[](https://github.com/mmkal/expect-type/actions/workflows/ci.yml)  [](ht
Fork of pretty-format with support for ESM
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
Node is running but you don't know why? why-is-node-running is here to help you.
Vitest test runner
Delightful JavaScript Testing.
Vitest module mocker implementation
Frequently installed together
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
An extremely fast JavaScript and CSS bundler and minifier.
TypeScript definitions for deep-eql
Version history
| Version | Published | License |
|---|---|---|
| 2.0.1latest | 2 years ago | MIT |
| 2.0.0 | 4 years ago | MIT |
| 1.1.0 | 8 years ago | MIT |
| 1.0.2 | 10 years ago | MIT |
| 1.0.1 | 11 years ago | MIT |
| 1.0.0 | 13 years ago | MIT |
| 0.1.0 | 13 years ago | MIT |
Keywords
Frequently asked questions
How do I install assertion-error?
Run `npm install assertion-error` to add assertion-error to your npm project.
What license is assertion-error released under?
assertion-error is distributed under the MIT license.
How popular is assertion-error?
assertion-error has approximately 0 downloads per week and 2 known dependent packages.