vitest-dev / vitest-dev/vitest

New JSON reporter

Open
#7,586 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p2-nice-to-have
Dominant language
TypeScript
Stars
17.1k
Forks
2k
Avg merge
1d 22h
Merged PRs (30d)
94

Description

Clear and concise description of the problem

The current JSON reporter is a jest-compatible reporter made exclusively to support tools that require that format. Vitest doesn't store tests in the same format internally, so it doesn't make sense to expose it that way. We need a separate json reporter.

Suggested solution
  1. Alias json reporter to jest-json, print a warning if used
  2. Add a new json reporter that uses Vitest tasks
Alternative

No response

Additional context

No response

Validations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing json and jest-json reporter implementations and the surrounding reporter tests. Determine whether the issue should first warn while aliasing json to jest-json, or add a separate reporter based on Vitest tasks; done means the chosen behavior is implemented and covered by reporter tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.