Skip to content

Commit

Permalink
fix(valid-describe-callback): Fix false negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Feb 27, 2024
1 parent 3e99e55 commit dd1db89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rules/valid-describe-callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export default {
create(context) {
return {
CallExpression(node) {
const call = parseFnCall(context, node);
const call = parseFnCall(context, node, {
includeConfigStatements: true,
});
if (call?.type !== 'describe') return;

if (node.arguments.length < 1) {
Expand Down

0 comments on commit dd1db89

Please sign in to comment.