Skip to content

Conversation

@axel7083
Copy link
Contributor

Fixes #819

<!-- BAD -->
vi.mock('./foo.js');

<!-- GOOD -->
vi.mock(import('./foo.js'));

@veritem veritem merged commit abdeab3 into vitest-dev:main Nov 21, 2025
5 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.

rule: enforce using import in vi.mock()

2 participants