CJS Import Code Coverage #20693
victormoukhortov
started this conversation in
Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks, it seems as though the ternary in
transformCjsImportresults in code that breaks coverage reporting:https://github.com/vitejs/vite/blob/main/packages/vite/src/node/plugins/importAnalysis.ts#L1076
The setup to repro this is somewhat convoluted, (storybook, vitest), but I'm wondering what the recommended approach for code coverage is here.
Beta Was this translation helpful? Give feedback.
All reactions