Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 417 Bytes

File metadata and controls

23 lines (14 loc) · 417 Bytes

vitest/no-mocks-import

📝 Disallow importing from mocks directory.

💼⚠️ This rule is enabled in the ✅ recommended config. This rule warns in the 🌐 all config.

Rule Details

This rule aims to prevent importing from the __mocks__ directory.

Fail

import { foo } from '__mocks__/foo'

Pass

import { foo } from 'foo'