vitest icon indicating copy to clipboard operation
vitest copied to clipboard

feat: make json reporter easier to extend

Open barraponto opened this issue 11 months ago • 1 comments

Description

Separates concerns : generating results and writing results should be separate functions. This way we can extend the logtasks function to change the coverage map results without touching the write logic. Or the other way, change the writing logic without touching the coverage map logic.

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • [ ] It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • [ ] Ideally, include a test that fails without this PR but passes with it.
  • [ ] Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

  • [ ] Run the tests with pnpm test:ci.

Documentation

  • [ ] If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • [ ] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

barraponto avatar Dec 19 '24 12:12 barraponto

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
Latest commit 80c82597f9a6f929391599209518d202287e0a43
Latest deploy log https://app.netlify.com/sites/vitest-dev/deploys/6764802d071ce7000849be3f
Deploy Preview https://deploy-preview-7103--vitest-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Dec 19 '24 20:12 netlify[bot]