Skip to content

Commit bca6dbd

Browse files
committed
test: only run unbound-method cases when using @typescript-eslint v7
1 parent 56a7323 commit bca6dbd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

jest.config.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ if (semver.major(eslintVersion) !== 8) {
4242
config.projects = config.projects.filter(
4343
({ displayName }) => displayName !== 'lint',
4444
);
45+
}
4546

46-
// jest/unbound-method doesn't work when using @typescript-eslint v6
47-
if (semver.major(typescriptESLintPluginVersion) === 6) {
48-
for (const project of config.projects) {
49-
project.testPathIgnorePatterns.push(
50-
'<rootDir>/src/rules/__tests__/unbound-method.test.ts',
51-
);
52-
project.coveragePathIgnorePatterns.push(
53-
'<rootDir>/src/rules/unbound-method.ts',
54-
);
55-
}
47+
// jest/unbound-method seems to only be happy with @typescript-eslint v7 right now...
48+
if (semver.major(typescriptESLintPluginVersion) !== 7) {
49+
for (const project of config.projects) {
50+
project.testPathIgnorePatterns.push(
51+
'<rootDir>/src/rules/__tests__/unbound-method.test.ts',
52+
);
53+
project.coveragePathIgnorePatterns.push(
54+
'<rootDir>/src/rules/unbound-method.ts',
55+
);
5656
}
5757
}
5858

0 commit comments

Comments
 (0)