Skip to content

Add support for listing pinned tests and fail test suite when there are pinned tests

Choose a tag to compare

@github-actions github-actions released this 12 Aug 07:51
· 5 commits to 4.x since this release

4.4.0 (2025-08-12)

disallowPinnedTests Plugin

The disallowPinnedTests plugin can be used to fail the test suite when there are one or more pinned tests. You may use it to disallow pinning tests when running in CI.

import { disallowPinnedTests } from '@japa/runner/plugins'

configure({
   plugins: [disallowPinnedTests({ disallow: !!process.env.CI })]
})
disallow-pinned-tests

List pinned tests

The --list-pinned flag can be used to view a list of all the pinned tests along with their source code location.

node bin/test.ts --list-pinned
pinned-tests

Features

  • add CLI flag to list pinned tests (5a60016)
  • add disallowPinnedTests plugin (94a966f)

Full Changelog: v4.3.1...v4.4.0