Releases: japa/assert
Releases · japa/assert
Do not evaluate assertions count for regression tests
4.1.1 (2025-07-24)
Bug Fixes
- do not evaluate assertions for regression tests (0a0cab3)
Full Changelog: v4.1.0...v4.1.1
Use chai inbuilt containSubset method
Deprecate containsSubset in favor of containSubset and notContainsSubset in favor of doesNotContainSubset.
4.1.0 (2025-07-21)
Features
- use chai inbuilt containSubset method (d166aea)
Full Changelog: v4.0.1...v4.1.0
Support @japa/runner v4
4.0.1 (2025-01-07)
Full Changelog: v4.0.0...v4.0.1
Remove OpenAPI assertions to its own package
Instead you must use the @japa/openapi-assertions package for OpenAPI assertions. You can configure and use it as follows.
npm i -D @japa/openapi-assertionsimport { openapi } from '@japa/openapi-assertions'
configure({
plugins: [
openapi({
schemas: [new URL('../api-spec.json', import.meta.url)],
}),
],
})Bug Fixes
- type issues and test script (81c7a9b)
BREAKING CHANGES
- API assertions have been moved to its own package
Full Changelog: v3.0.0...v4.0.0
Upgrade to Chai 5
There are no breaking changes in @japa/assert. However, since we have upgraded the underlying dependency chai, it might bring some surprises. Please check chai releases once.
Commits
What's Changed
- notInclude docs update by @shaheedazaad in #1
New Contributors
- @shaheedazaad made their first contribution in #1
Full Changelog: v1.4.1...v3.0.0
Rename certain assertion methods
Deprecations
- The
doesNotRejectsmethod has been deprecated in favor ofdoesNotReject - The
doesNotThrowsmethod has been deprecated in favor ofdoesNotThrow
Commits
- refactor: deprecate doesNotRejects and doesNotThrows in favor of new methods 46ce1df
- chore: update dependencies 3ee9d49
- docs: fix docblock for notInclude and notDeepInclude methods 931beca
What's Changed
- notInclude docs update by @shaheedazaad in #1
New Contributors
- @shaheedazaad made their first contribution in #1
Full Changelog: v2.0.1...v2.1.0
Bundle using tsup
Full Changelog: v2.0.0...v2.0.1
Major release under latest tag
- The package is ESM only
Commits
- docs(README): update usage docs 125b9f4
- feat: allow schema paths to be instanceof URLs cdd9dbb
- chore: publish under latest tag c502614
- chore: update dependencies f37dc8d
Full Changelog: v1.4.1...v2.0.0
Update dependencies
- chore: update peer dependency ebf2ba5
- ci: rename test.yml to checks.yml bbf72ba
- chore: update dependencies 7d6dcea
Full Changelog: v2.0.0-1...v2.0.0-2