Skip to content

Releases: japa/assert

Do not evaluate assertions count for regression tests

24 Jul 05:50

Choose a tag to compare

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

21 Jul 06:07

Choose a tag to compare

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

07 Jan 11:17

Choose a tag to compare

4.0.1 (2025-01-07)

Full Changelog: v4.0.0...v4.0.1

Remove OpenAPI assertions to its own package

18 Dec 05:38

Choose a tag to compare

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-assertions
import { openapi } from '@japa/openapi-assertions'

configure({
  plugins: [
    openapi({
      schemas: [new URL('../api-spec.json', import.meta.url)],
    }),
  ],
})
  • refactor!: remove api-contract-validator for OpenAPI testing (#5) (e9ad2ed), closes #5

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

29 Mar 10:32

Choose a tag to compare

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

  • fix: peer dependencies range 272bdc5
  • chore: update dependencies 4e1fc51

What's Changed

New Contributors

Full Changelog: v1.4.1...v3.0.0

Rename certain assertion methods

16 Dec 07:34

Choose a tag to compare

Deprecations

  • The doesNotRejects method has been deprecated in favor of doesNotReject
  • The doesNotThrows method has been deprecated in favor of doesNotThrow

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

New Contributors

Full Changelog: v2.0.1...v2.1.0

Bundle using tsup

06 Nov 09:11

Choose a tag to compare

  • refactor: bundle code using tsup and reformat internals b34c6b4
  • chore: update dependencies 7202805

Full Changelog: v2.0.0...v2.0.1

Major release under latest tag

07 Oct 05:13

Choose a tag to compare

  • 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

25 Sep 10:28

Choose a tag to compare

Update dependencies Pre-release
Pre-release
  • 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

Re-export Assert class

28 Jun 19:16

Choose a tag to compare

Pre-release

Commits

  • fix: add missing Assert class export 5b3abb1

v2.0.0-0...v2.0.0-1