npm @japa/assert 4.0.0
Remove OpenAPI assertions to its own package

latest releases: 4.2.0, 4.1.1, 4.1.0...
23 months ago

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

Don't miss a new assert release

NewReleases is sending notifications on new releases.