Skip to content

Commit d186b4b

Browse files
committed
fix(unbound-method): also account for vi
1 parent 3250a9c commit d186b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/unbound-method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default createEslintRule<Options, MESSAGE_IDS>({
7676
)
7777

7878
if (
79-
vitestFnCall?.type === 'vitest' &&
79+
(vitestFnCall?.type === 'vitest' || vitestFnCall?.type === 'vi') &&
8080
vitestFnCall.members.length >= 1 &&
8181
isIdentifier(vitestFnCall.members[0], 'mocked')
8282
)

0 commit comments

Comments
 (0)