-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Vitest Assets are not accessible when run with projects #9007
Copy link
Copy link
Closed
Labels
feat: browserIssues and PRs related to the browser runnerIssues and PRs related to the browser runnerfeat: uiVitest UIVitest UIp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
Vitest screenshots assets are not being exposed correctly, and vitest ui is not able to reach them.
When using projects config to run browser tests, vitest ui shows a broken ref image.
Current Behavior:
Expected Behavior:
Reproduction
I've created a minimal reproduction repo:
In this repo in the vitest.config.ts you will see 2 configs:
- The default (uncommented) is the one that fails (
current behavior) - The commented is the one used for
expected behavior
Steps:
- download the project to be able to use playwright, as stackblitz does not allow it
- npm ci
- run
npm run test -
- remember to delete reference screenshots between runs or the tests will not fail
System Info
System:
OS: macOS 15.6.1
CPU: (8) arm64 Apple M3
Memory: 334.80 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.11.0 - /[REDACTED]/.nvm/versions/node/v24.11.0/bin/node
npm: 11.6.1 - /[REDACTED]/.nvm/versions/node/v24.11.0/bin/npm
Browsers:
Brave Browser: 141.1.83.120
Safari: 18.6Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat: browserIssues and PRs related to the browser runnerIssues and PRs related to the browser runnerfeat: uiVitest UIVitest UIp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)