Releases: japa/assert
Releases · japa/assert
Make "incrementAssertionsCount" method public
- refactor: make incrementAssertionsCount public 40ad116
- chore: update dependencies 47b32cd
- refactor: have strict types inside Test.dispose method a213021
Full Changelog: v1.3.7...v1.4.0
Update dependencies
Update dependencies
Update dependencies
- chore: add peer dependency on @japa/runner 1799bd9
- chore: update dependencies 1e082a1
- docs(README): fix incorrect method name in example 5d8436f
Full Changelog: v1.3.4...v1.3.5
Fix containSubset and notContainSubset to show correct diff
- fix: containSubset and notContainSubset to show correct diff c20f469
Update dependencies
- chore: update dependencies 5345ec8
Upgrade to latest version of macroable
- chore: update dependencies bb9e7ab
Update dependencies
- chore: update dependencies 8be51fc
Add support for asserting against open API schema
After this release, you will be able to register the open API schemas and assert API responses against it. Here's a small example.
const config = {
openApi: {
schemas: [join(__dirname, '..', 'api-spec.json')],
},
}
configure({
plugins: [assert(config)],
})
Validate response as follows.
test('get users', ({ assert }) => {
const response = await supertest(baseUrl).get('/users')
assert.isValidateApiResponse(response)
})