Skip to content

feat(coverage): support custom reporters like @canyonjs/report-html#771

Merged
9aoy merged 3 commits intoweb-infra-dev:mainfrom
canyon-project:main
Dec 18, 2025
Merged

feat(coverage): support custom reporters like @canyonjs/report-html#771
9aoy merged 3 commits intoweb-infra-dev:mainfrom
canyon-project:main

Conversation

@travzhang
Copy link
Copy Markdown
Contributor

Summary

Extended coverage reporter types to support custom reporters (like @canyonjs/report-html) beyond built-in istanbul reporters. Updated both type definitions and provider implementation to handle custom reporter names while maintaining backward compatibility.

Changes:

  • Added CustomReporter and SupportedReporter types in coverage.ts
  • Updated reporters property to accept custom reporter names
  • Fixed TypeScript error in provider using type assertion (following Vitest pattern)
  • Added comprehensive documentation with usage examples

Related Links

N/A - Internal enhancement to support custom coverage reporters

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 15, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 801536e
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/69401cd45897410008cc5984
😎 Deploy Preview https://deploy-preview-771--rstest-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 project configuration.

@travzhang travzhang changed the title feat(coverage): support custom reporters like canyon-reporter feat(coverage): support custom reporters like @canyonjs/report-html Dec 15, 2025
@9aoy 9aoy merged commit a9b87fa into web-infra-dev:main Dec 18, 2025
16 checks passed
@9aoy
Copy link
Copy Markdown
Collaborator

9aoy commented Dec 18, 2025

👍

@9aoy 9aoy mentioned this pull request Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants