Skip to content

fix(vitest): test deep dependencies change detection#4934

Merged
sheremet-va merged 1 commit intovitest-dev:mainfrom
blake-newman:blake.newman/fix-changed-detection-deep-deps
Jan 20, 2024
Merged

fix(vitest): test deep dependencies change detection#4934
sheremet-va merged 1 commit intovitest-dev:mainfrom
blake-newman:blake.newman/fix-changed-detection-deep-deps

Conversation

@blake-newman
Copy link
Copy Markdown
Contributor

@blake-newman blake-newman commented Jan 11, 2024

--changed flag is not correctly looking up deep dependencies, as such the changed flag does not trigger specs if a sub dependency is changed.

Alters the logic to add the collected dependency after recursive addImports is called, otherwise the logic returns early because that dependency has already been added to the collected deps set. So it will not look deeply.

Resolves #4933
(Also Resolves #5009)

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

vitest related with barrel files --changed not picking up deep imports

3 participants