fix(config): enable sourcemaps when vitest coverage is enabled#1674
fix(config): enable sourcemaps when vitest coverage is enabled#1674
Conversation
commit: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds an internal helper isCoverageEnabled that determines coverage enablement by checking both Nuxt config (test.coverage.enabled) and Vitest CLI args. In resolveConfig, when coverage is detected, the code ensures client-side sourcemaps are enabled by updating test.environmentOptions.nuxt.overrides to set overrides.sourcemap.client = true, creating the sourcemap object if absent and adding the client field if missing. No exported/public signatures are changed. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@antoinezanardi does this resolve things for you? 🙏 |
|
It should work ! Let's try this ☀️ |
🔗 Linked issue
resolves #1655
📚 Description
this enables client-side sourcemaps when coverage is enabled in vitest