You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/prefer-import-in-mock.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,22 @@
8
8
9
9
<!-- end auto-generated rule header -->
10
10
11
-
This rule enforces using a dynamic import() in vi.mock(), which improves type information and IntelliSense for the mocked module.
11
+
This rule enforces using a dynamic `import()` in `vi.mock()` and `vi.doMock()`, which improves type information and IntelliSense for the mocked module.
12
12
13
13
### Rule details
14
14
15
-
The following pattern is considered a warning:
15
+
The following patterns are considered a warning:
16
16
17
17
```js
18
18
vi.mock('./path/to/module')
19
+
vi.doMock('./path/to/module')
19
20
```
20
21
21
-
The following pattern is not considered a warning:
22
+
The following patterns are not considered a warning:
0 commit comments