Skip to content

Commit 4fab92e

Browse files
hainenberG-Rath
andauthored
Apply suggestions from @G-Rath's code review
Co-authored-by: Gareth Jones <[email protected]>
1 parent a6782da commit 4fab92e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/rules/valid-mock-module-path.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jest.mock('../../this/path/really/does/exist.js');
4545
"jest/valid-mock-module-path": [
4646
"error",
4747
{
48-
"moduleFileExtensions": [".tsx", ".ts"]
48+
"moduleFileExtensions": [".js", ".ts", ".jsx", ".tsx", ".json"]
4949
}
5050
]
5151
}
@@ -54,7 +54,7 @@ jest.mock('../../this/path/really/does/exist.js');
5454
### `moduleFileExtensions`
5555

5656
This array option controls which file extensions the plugin checks for
57-
existence. Valid values are:
57+
existence. The default extensions are:
5858

5959
- `".js"`
6060
- `".ts"`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default createRule<
2121
meta: {
2222
type: 'problem',
2323
docs: {
24-
description: 'Disallow mocking of non-existing module path',
24+
description: 'Disallow mocking of non-existing module paths',
2525
},
2626
messages: {
2727
invalidMockModulePath: 'Module path {{ moduleName }} does not exist',

0 commit comments

Comments
 (0)