Skip to content

revert: "fix(vite-node): circular import stuck" #3418#3479

Merged
sheremet-va merged 3 commits intovitest-dev:mainfrom
sheremet-va:fix/circular-check
May 31, 2023
Merged

revert: "fix(vite-node): circular import stuck" #3418#3479
sheremet-va merged 3 commits intovitest-dev:mainfrom
sheremet-va:fix/circular-check

Conversation

@sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented May 31, 2023

Reverts #3418

mod.importers.has(importee) is always true because we add "importee" to importers a few lines prior

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sheremet-va sheremet-va changed the title fix(vite-node): check circular before adding path to importers revert: "fix(vite-node): circular import stuck" vitest-dev#3418 May 31, 2023
@sheremet-va sheremet-va changed the title revert: "fix(vite-node): circular import stuck" vitest-dev#3418 revert: "fix(vite-node): circular import stuck" #3418 May 31, 2023
@antfu
Copy link
Member

antfu commented May 31, 2023

We can do a quick hotfix release if you think it's necessary.

@sheremet-va
Copy link
Member Author

We can do a quick hotfix release if you think it's necessary.

Yes, I think we should do a quick hotfix today when CI passes.

@AriPerkkio
Copy link
Member

The tests in examples/mocks/test/circular.spec.ts should get stuck after this change. Need to revert / skip those ones too.

@sheremet-va sheremet-va merged commit 03d3424 into vitest-dev:main May 31, 2023
@sheremet-va sheremet-va deleted the fix/circular-check branch May 31, 2023 14:18
Dunqing added a commit to Dunqing/vitest that referenced this pull request May 31, 2023
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.

3 participants