diff --git a/src/rules/prefer-importing-jest-globals.ts b/src/rules/prefer-importing-jest-globals.ts index 764a465de..9cce2d213 100644 --- a/src/rules/prefer-importing-jest-globals.ts +++ b/src/rules/prefer-importing-jest-globals.ts @@ -67,7 +67,7 @@ export default createRule({ return { ImportDeclaration(node: TSESTree.ImportDeclaration) { node.specifiers.forEach(specifier => { - if (specifier.type === 'ImportSpecifier') { + if (specifier.type === AST_NODE_TYPES.ImportSpecifier) { importedFunctionsWithSource[specifier.local.name] = node.source.value; }