Skip to content

Commit 8c9730b

Browse files
committed
chore: fix correct config to test valid-mock-module-path on eslint v9
Signed-off-by: hainenber <[email protected]>
1 parent cb5947e commit 8c9730b

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,20 +157,18 @@ describe('valid-mock-module-path', () => {
157157

158158
/* istanbul ignore if */
159159
if (usingFlatConfig) {
160-
linter.verify(
161-
'jest.mock("./fixtures/module")',
162-
[
163-
{
164-
files: [__filename],
165-
plugins: {
166-
jest: {
167-
rules: { 'valid-mock-module-path': mockUnexpectedError() },
168-
},
160+
linter.verify('jest.mock("./fixtures/module")', [
161+
{
162+
plugins: {
163+
jest: {
164+
rules: { 'valid-mock-module-path': mockUnexpectedError() },
169165
},
170166
},
171-
],
172-
__filename,
173-
);
167+
rules: {
168+
'jest/valid-mock-module-path': 'error',
169+
},
170+
},
171+
]);
174172

175173
return;
176174
}

0 commit comments

Comments
 (0)