Skip to content

Commit

Permalink
For expect-expect, report of test identifier rather than body (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
willmanduffy authored Nov 18, 2023
1 parent ecb9b6b commit f0a1c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/expect-expect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default createEslintRule<Options, MESSAGE_ID>({
}
},
'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 ') } }))
}
}
}
Expand Down

0 comments on commit f0a1c4b

Please sign in to comment.