Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

chore(deps): update dependency @japa/runner to v4 #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 12, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@japa/runner ^3.1.4 -> ^4.1.0 age adoption passing confidence

Release Notes

japa/runner (@​japa/runner)

v4.1.0: Add Github annotations reporter

Compare Source

The Github annotations reporter reports test errors as workflow annotations. The reporter gets activated automatically in the Github actions environment

4.1.0 (2025-01-09)
Bug Fixes
  • incorrect base reporter import (5780063)
  • use unix slash in github annotations (a29115f)
Features
  • add github annotations reporter (23c7762)
  • enable github reporter when running in Github actions CI (9da5475)
  • make reporter private methods protected (d3e18a5)

Full Changelog: japa/runner@v4.0.0...v4.1.0

v4.0.0: Test macros, support for bail mode and some breaking changes

Compare Source

Test macros

Test macros are reusable test bound functions that can create and destroy resources around the lifecycle of a test. You can learn more about them in the docs and this tweet. https://x.com/AmanVirk1/status/1876135855074488589

Bail mode

In bail mode, all the upcoming tests after the failing test will be skipped. You could enable the bail mode in CI/CD pipelines to early exit the workflow after having a failing test. The bail mode is enabled using the --bail flag.

Changes to styling of subtext

The subtext refers to the text displayed by the spec reporter for the skipped and the regression tests. Earlier, the subtext was displayed in the same color as the test title. Now it is displayed as dimmed text with small tweaks to the styling. Please refer the following screenshots for the same.

Before

japa-3-x

After

japa-4-x

Bug Fixes
  • remove failed CLI flag from the string array (31e38ca)
Code Refactoring
  • rename createDiverseTests to createDummyTests (07ea6bc)
Features
  • add support for bail mode (cf64cf9)
  • add test.macro to define test bound reusable functions (83ff323)
  • change styling of subtext (663dcbe)
  • point timeout and regression errors to the test callback (d0462fb)
  • serialize suite errors in ndjson reporter (5a8a9f9)
BREAKING CHANGES
  • Rename createDiverseTest to createDummyTests exported via @japa/runner/factories

Full Changelog: japa/runner@v3.1.4...v4.0.0


Configuration

📅 Schedule: Branch creation - "before 12pm on Sunday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/japa-runner-4.x branch from 08b040d to a322b36 Compare January 12, 2025 06:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants