Skip to content

Releases: japa/assert

Make "incrementAssertionsCount" method public

10 Feb 05:25
Compare
Choose a tag to compare
  • 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

07 Feb 09:13
Compare
Choose a tag to compare
  • docs(README): fix badge url for github workflow 4c4145d
  • chore: update dependencies 3375ae9
  • refactor: restructure files and folders b9cd078
  • style: format source and meta files 280bba0
  • chore: update dependencies 4bbd7e9

Full Changelog: v1.3.6...v1.3.7

Update dependencies

08 Sep 04:40
Compare
Choose a tag to compare
  • chore: update package-lock file 03f99e6
  • docs(README): fix link to assert plugin docs 62d4faa
  • chore: remove github health files in favor of central .github repo 3fb9276
  • chore: update dependencies 02ecbc8

v1.3.5...v1.3.6

Update dependencies

03 Sep 00:05
Compare
Choose a tag to compare
  • 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

08 Apr 03:49
Compare
Choose a tag to compare
  • fix: containSubset and notContainSubset to show correct diff c20f469

v1.3.3...v1.3.4

Update dependencies

02 Apr 03:39
Compare
Choose a tag to compare
  • chore: update dependencies 5345ec8

v1.3.2...v1.3.3

Upgrade to latest version of macroable

23 Mar 10:34
Compare
Choose a tag to compare

Update dependencies

23 Mar 07:26
Compare
Choose a tag to compare
  • chore: update dependencies 8be51fc

v1.3.0...v1.3.1

Add support for asserting against open API schema

18 Mar 12:26
Compare
Choose a tag to compare

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

Commits

  • docs(README): add open API assertion example 46ef0e2
  • feat: add support for validating responses against api schema ed7b71f
  • feat: automatically augment TestContext 1c402fd
  • chore: update dependencies 8b71324

v1.2.4...v1.3.0

update dependencies

05 Mar 05:25
Compare
Choose a tag to compare
  • chore: update dependencies e8a1f02
  • chore: update dependencies 919f7ea

v1.2.3...v1.2.4