vitest-failures-reporter
v0.1.1
Published
A minimal Vitest reporter that prints only failed tests and the final summary.
Downloads
6,552
Readme
vitest-failures-reporter
A minimal Vitest reporter that prints failed tests and a final summary without the noise from dot or default reporters.
Install
pnpm add -D vitest-failures-reporterUsage
vitest run --reporter=vitest-failures-reporterUse it with other reporters when CI needs annotations or artifacts:
vitest run \
--reporter=vitest-failures-reporter \
--reporter=github-actions \
--reporter=junit \
--outputFile=test-report.junit.xmlExample output:
--- FAILED TESTS ---
FAIL math.test.mts > adds numbers
expected 1 to be 2
FAIL | 12 passed | 1 failed | 0 skipped | 3 filesDevelopment
pnpm install
pnpm test
pnpm run checkTests run with this reporter as the active Vitest reporter and enforce 100% coverage for src/.
