Add support for listing pinned tests and fail test suite when there are pinned tests
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 })]
})
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
Features
Full Changelog: v4.3.1...v4.4.0