diff --git a/src/rules/expect-expect.ts b/src/rules/expect-expect.ts index 3e51a1b..01de96c 100644 --- a/src/rules/expect-expect.ts +++ b/src/rules/expect-expect.ts @@ -95,7 +95,7 @@ export default createEslintRule({ } }, 'Program:exit'() { - unchecked.forEach(node => context.report({ node, messageId: 'expectedExpect', data: { expected: customExpressions.join(' or ') } })) + unchecked.forEach(node => context.report({ node: node.callee, messageId: 'expectedExpect', data: { expected: customExpressions.join(' or ') } })) } } }