@flakytests/adapter-vitest
v0.1.0
Published
Retry-aware Vitest reporter and adapter for flaky test management
Readme
@flakytests/adapter-vitest
Retry-aware reporter and result adapter for Vitest 3.2 and Node.js 22+. MIT licensed. Standard Vitest JSON does not contain reliable retry evidence.
Declare this package directly because your test configuration imports its reporter:
npm install --save-dev @flakytests/cli @flakytests/adapter-vitestMerge into your Vitest config:
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
retry: 2,
reporters: [
"default",
[
"@flakytests/adapter-vitest/reporter",
{ outputFile: "test-results/vitest.json" },
],
],
},
});Configure adapters.vitest.results: test-results/vitest.json in flaky.yml.
The VitestAdapter export parses this reporter's versioned output. The reporter
preserves retry counts and expected-failure semantics, excludes skipped tests
from recovery, and reports global/collection/hook errors as non-quarantinable.
Vitest repeats and major versions beyond 3 are not supported.
See the project documentation.
