Skip to content

Releases: japa/core

Update dependencies

03 Jan 07:38
Compare
Choose a tag to compare

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

Improvements to hook methods

18 Oct 12:32
Compare
Choose a tag to compare

The hook methods like suite.onGroup, suite.onTest, group.tap, and runner.onSuite used to execute for newly added instances to the respective classes. After this release, the hooks will be executed for pre-registered instances as well.

const test = new Test(...args)
const test1 = new Test(...args)

const group = new Group(...args)

/**
 * The follow tap method will not be called for this
 * test
 */
group.add(test)

group.tap((t) => {
})

/**
 * The above tap method will be called for the following
 */
group.add(test)

After this change, the tap method will run for all the tests registered with a group, regardless of when they are added. Same applies for other hooks as well

Commits

  • chore: configure c8 2a83807
  • chore: update dependencies d89d6d6
  • feat: improvements to onGroup, onTest, tap, and onSuite hooks 7791d2a

Full Changelog: v8.0.2...v8.1.0

Update dependencies

14 Oct 07:16
Compare
Choose a tag to compare
  • chore: add missing dependency 9ddc069
  • chore: update dependencies 4c0e0b4

Full Changelog: v8.0.1...v8.0.2

Fix: Run test cleanup hooks in reverse order

09 Oct 07:54
Compare
Choose a tag to compare
  • fix: run test cleanup hooks in reverse order 7463b4a
  • chore: update dependencies 24f5862

Full Changelog: v8.0.0...v8.0.1

Major release under latest tag