You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm publishing the test results provided by the html reporter in a Jenkins pipeline, I am expecting to see the test results from Jenkins but am getting a blank page with error, see screenshots
The error is caused by skipping the metadata unzip when its content-type is application/x-gzip because it's only checking for application/gzip.
Describe the bug
I'm publishing the test results provided by the html reporter in a Jenkins pipeline, I am expecting to see the test results from Jenkins but am getting a blank page with error, see screenshots
The error is caused by skipping the metadata unzip when its content-type is
application/x-gzip
because it's only checking forapplication/gzip
.I would like to submit a PR for this issue updating this line:
https://github.com/vitest-dev/vitest/blob/9836ccb48c5a39c0999484f55731f53ba494be17/packages/ui/client/composables/client/static.ts#LL77C1-L77C1
to
if (contentType.includes('application/gzip') || contentType.includes(application/x-gzip)) {
Reproduction
repo: https://github.com/mzanelee/reproduce-html-reporter-issue
steps to reproduce:
npm install
npm run test
npx http-server test-report --mimetypes '{"application/x-gzip":["gz"]}'
view error on localhost:8080
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: