Releases: japa/core
Skip suites in bail mode
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
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
Point timeout and regression errors to the source of the test
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
10.0.1 (2025-01-03)
Full Changelog: v10.0.0...v10.0.1
Support for bail mode and breaking changes
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
- chore: update dependencies 0ac2cc9
Full Changelog: v8.1.2...v9.0.1
Removing dead code
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.
Full Changelog: v8.1.2...v9.0.0
Update dependencies
- 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