Skip to content

feat(ui)!: change html reporter default output to .vitest #10620

Merged
hi-ogawa merged 9 commits into
vitest-dev:mainfrom
hi-ogawa:fix/issue-10240
Jun 19, 2026
Merged

feat(ui)!: change html reporter default output to .vitest #10620
hi-ogawa merged 9 commits into
vitest-dev:mainfrom
hi-ogawa:fix/issue-10240

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Description

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

…t root

Make the HTML reporter default to `.vitest` as its report artifact root and
replace the `outputFile` option with `outputDir`. The report entry is written
to `<outputDir>/index.html`, UI implementation files live under
`<outputDir>/ui/`, and attachments are served from `<outputDir>/attachments/`
(reusing the default `.vitest/attachments` without a copy).

Closes vitest-dev#10240

AI-Agent: Opencode
@hi-ogawa hi-ogawa changed the title feat(reporters)!: change html reporter default output to .vitest feat(ui)!: change html reporter default output to .vitest Jun 19, 2026
@netlify

netlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a2966cb
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a350374c13c6c000848e4c1
😎 Deploy Preview https://deploy-preview-10620--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

hi-ogawa added 2 commits June 19, 2026 14:36
Drop the redundant `.vitest/html` outputDir override so the CI merge-report
html output uses the new default `.vitest` root, and retarget the CI workflow
copy/upload paths accordingly.

AI-Agent: Opencode
The html reporter now writes to the shared `.vitest` directory, so the old
`html/` output paths in `.gitignore` files and the dead `outputFile.html`
config are no longer needed.

AI-Agent: Opencode
Comment thread packages/vitest/src/node/reporters/utils.ts Outdated
Comment thread packages/ui/node/reporter.ts
Comment thread docs/config/outputfile.md Outdated
Comment thread packages/ui/node/reporter.ts
Comment thread test/e2e/test/reporters/html.test.ts Outdated
Comment thread docs/config/outputfile.md Outdated
@hi-ogawa
hi-ogawa marked this pull request as ready for review June 19, 2026 07:08
@hi-ogawa
hi-ogawa merged commit 29c364d into vitest-dev:main Jun 19, 2026
14 of 18 checks passed
@hi-ogawa
hi-ogawa deleted the fix/issue-10240 branch June 19, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make HTML reporter default output use .vitest as the report artifact root

2 participants