-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: fix backend code coverage report #1322
Conversation
packages/backend/vite.config.js
Outdated
output: { | ||
entryFileNames: '[name].js', | ||
entryFileNames: '[name].cjs', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: I don't know how it can work in your app if you change the extension suffix but not changing the path in package.json ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced commit with one to only add the missing extension.
@@ -27,9 +27,10 @@ const config = { | |||
coverage: { | |||
provider: 'v8', | |||
reporter: ['lcov', 'text'], | |||
extension: '.ts', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK it seems this is the fix, so I would rather split into chunks
some are code formatting, this one is a fix and the previous one is a change but usually it's b/c the type is changed to module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, commit only fixes vitest.config now.
Code coverage reports were including lots of files that aren't in the package. As usual, my first step was to steal from the AI Lab extension! :) The fix is in vitest.config. Fixes podman-desktop#1321. Signed-off-by: Tim deBoer <[email protected]>
What does this PR do?
Code coverage reports were including lots of files that aren't in the package.
As usual, my first step was to steal from the AI Lab extension! :) The fix is in vitest.config, but I also found some minor differences/formatting in vite.config that I thought were worth picking up and aligning to.
Screenshot / video of UI
Coverage report down from multiple pages to:
What issues does this PR fix or reference?
Fixes #1321.
How to test this PR?
pnpm test:backend