Skip to content

Releases: japa/core

Skip suites in bail mode

06 Jan 03:57
Compare
Choose a tag to compare

10.3.0 (2025-01-06)

Bug Fixes

  • use group.each.tap to skip group tests (17d3924)

Features

  • skip suites in bail mode (bb179b3)

Full Changelog: v10.2.0...v10.3.0

Skip tests in bail mode and allow skipping group tests in bulk

05 Jan 16:38
Compare
Choose a tag to compare

The group.each.skip method could be used to skip group tests in bulk

Features

  • skip tests in bail mode and allow skipping group tests in bulk (f8f710b)

Full Changelog: v10.1.1...v10.2.0

Fix bail method to be idempotent

04 Jan 05:10
Compare
Choose a tag to compare

10.1.1 (2025-01-04)

Bug Fixes

  • only apply bail when not already applied (14b1f8e)

Point timeout and regression errors to the source of the test

04 Jan 03:30
Compare
Choose a tag to compare

10.1.0 (2025-01-04)

The Test.run method now accepts an Error instance, which acts as a debugging error and is used to report internal errors at the time of executing the test. As a result of it, the errors like the Timeout error, or the regression passing test error will point back to the source of the test.

You can pass an empty Error instance as the second argument to the run method.

new Test().run(() => {
  
}, new Error())

Features

  • point timeout and regression errors to the source of the test callback (84a9966)

Full Changelog: v10.0.1...v10.1.0

Update dependencies

03 Jan 07:38
Compare
Choose a tag to compare

10.0.1 (2025-01-03)

Full Changelog: v10.0.0...v10.0.1

Support for bail mode and breaking changes

03 Jan 03:03
Compare
Choose a tag to compare

10.0.0 (2025-01-03)

This release changes how regression tests are reported by the emitter. This will lead to breaking changes in test reporters that relies on the emitter to know the state of a test. However, it won't impact the end-user application.

The bail mode will allow exiting the tests runner as soon as there is one failing test. This could help in CI/CD pipelines to exit the workflow after first error. The final end-user API for enabling/disabling bail mode will be added to the @japa/runner package

Features

  • add support for bail mode (4d462ad)
  • add test failed and executed states (b965a8b)
  • introduced failed flag and change behavior of regression tests reporting (37e6ddd)

BREAKING CHANGES

  • The test runner no longer report regression tests with hasErrors
    and errors property. Instead a failing regression test is considered as passing
    in all the layers

What's Changed

  • chore(deps-dev): bump braces from 3.0.2 to 3.0.3 by @dependabot in #73

Full Changelog: v9.0.1...v10.0.0

Update dependencies

29 Mar 09:12
Compare
Choose a tag to compare
  • chore: update dependencies 0ac2cc9

Full Changelog: v8.1.2...v9.0.1

Removing dead code

16 Dec 05:44
Compare
Choose a tag to compare

In this release, the title property in test:start and test:end events does not implement a custom toString method. You should read the title using the event.title.original or event.title.expanded properties.

  • refactor: remove dead code and improve tests coverage 8b98a4e
  • chore: update dependencies a9bbd75

Full Changelog: v8.1.2...v9.0.0

Update dependencies

22 Nov 04:07
Compare
Choose a tag to compare
  • test: add test for filter with special characters 750d733
  • chore: pin typescript to 5.2 682f8fe
  • chore: update dependencies 9943833

Full Changelog: v8.1.1...v8.1.2

Publish source maps and use TSC for generating types

06 Nov 08:29
Compare
Choose a tag to compare
  • chore: do not publish test files a5598c0
  • refactor: rename test directories 20fd861
  • chore: publish source maps and use tsc for generating types 9218552
  • chore: update dependencies 15bcbc8
  • chore: update dependencies 814671a

Full Changelog: v8.1.0...v8.1.1