Installation
@artstesh/it-should is a plain TypeScript package with no plugins, transformers, or global setup. Install it as a development dependency:
Requirements
The library has a single peer dependency: TypeScript.
Line | TypeScript peer | Install |
|---|---|---|
v2 (current) |
|
|
v1 (legacy) |
|
|
See Versions for what distinguishes the lines.
Any test runner
The assertions communicate failure by throwing a ShouldError, so they work wherever an exception fails a test — no runner-specific integration is required. Import and use:
TypeScript compiles the chains as ordinary typed calls: if a check does not exist for the verifier, it is a compile-time error, not a runtime surprise.
What is exported
Everything ships from the package root — should, the verifier classes, Times, and ArrayOrderedSettings:
The full list lives in the API reference.
Next steps
Quick Start — the first chains end-to-end.
Concepts — how
notanddefined()behave.