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)],
}),
],
})
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