Skip to content

fix: run tests that import a deleted file - #11669

Merged
sheremet-va merged 1 commit into
mainfrom
fix/changed-deleted-imports
Oct 20, 2026
Merged

sheremet-va merged 1 commit into
mainfrom
fix/changed-deleted-imports

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

Fixes #11566

In SSR, Vite keeps an import it can't resolve in the module graph with the raw specifier as the id (or the aliased path with noResolved for an alias), so the walk dropped the link to the deleted file. A static import like that now marks the importer as failed, the same way the client environment already does. Dynamic imports are skipped because they can be caught, bare specifiers because Node can still load them.

@netlify

netlify Bot commented Oct 20, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit ced7f24
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6ad74fd788238043c8c4e7ff
😎 Deploy Preview https://deploy-preview-11669--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.

@sheremet-va
sheremet-va merged commit 80aa13d into main Oct 20, 2026
31 checks passed
@sheremet-va
sheremet-va deleted the fix/changed-deleted-imports branch October 20, 2026 12:37
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--changed skips tests that import a deleted file

1 participant