Skip to content

Conversation

@sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented Nov 24, 2025

Description

This should make it easier for users to understand what collect means. We get a lot of questions about that. import is not a perfect description, but close enough. It won't include dynamic imports made inside of tests as those are reported as test

I am not sure if this is a breaking change because it changes the output, but previously we did reporter updates as major/fixes

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:.

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit c717cfd
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/69257e14fa396c00071c9969
😎 Deploy Preview https://deploy-preview-9091--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@sheremet-va sheremet-va changed the title fix: rename collect to import fix: rename collect to import, remove prepare Nov 24, 2025
Copy link
Contributor

@hi-ogawa hi-ogawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. I don't think reporter output only change is breaking change.

- Transform: How much time was spent transforming the files. See [File Transform](#file-transform).
- Setup: Time spent for running the [`setupFiles`](/config/#setupfiles) files.
- Collect: Time spent for collecting all tests in the test files. This includes the time it took to import all file dependencies.
- Import: Time it took to import your test file. This also includes the time spent collecting all tests.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I liked "all dependencies" wording of previous docs. I think "import test file" alone can feel un-intuitive. Can we keep that part like this?

Suggested change
- Import: Time it took to import your test file. This also includes the time spent collecting all tests.
- Import: Time it took to import your test file and all dependencies. This also includes the time spent collecting all tests.

@sheremet-va sheremet-va merged commit 1256b5c into vitest-dev:main Nov 25, 2025
13 of 16 checks passed
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.

2 participants