Skip to content

Commit 36d37a3

Browse files
hainenberG-Rath
andauthored
Update src/rules/valid-mock-module-path.ts
Co-authored-by: Gareth Jones <[email protected]>
1 parent d60997c commit 36d37a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/valid-mock-module-path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default createRule<
100100
return;
101101
}
102102
} catch (err: unknown) {
103-
const castedErr = err as NodeJS.ErrnoException;
103+
const castedErr = err as { code: string };
104104

105105
// Reports unexpected issues when attempt to verify mocked module path.
106106
// The list of possible errors is non-exhaustive.

0 commit comments

Comments
 (0)