Skip to content

Commit 18fcb19

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ if (semver.major(eslintVersion) !== 8) {
4343
({ displayName }) => displayName !== 'lint',
4444
);
4545

46-
// jest/unbound-method doesn't work when using @typescript-eslint v6
47-
if (semver.major(typescriptESLintPluginVersion) === 6) {
46+
// jest/unbound-method seems to only be happy with @typescript-eslint v7 right now...
47+
if (semver.major(typescriptESLintPluginVersion) !== 7) {
4848
for (const project of config.projects) {
4949
project.testPathIgnorePatterns.push(
5050
'<rootDir>/src/rules/__tests__/unbound-method.test.ts',

0 commit comments

Comments
 (0)