diff --git a/src/rules/expect-expect.ts b/src/rules/expect-expect.ts index e698f2a4..b2ce57fc 100644 --- a/src/rules/expect-expect.ts +++ b/src/rules/expect-expect.ts @@ -97,14 +97,7 @@ export default createEslintRule({ if ( node?.callee?.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && - node.callee.property.name === 'extend' - ) - return - - if ( - node?.callee?.type === AST_NODE_TYPES.MemberExpression && - node.callee.property.type === AST_NODE_TYPES.Identifier && - node.callee.property.name === 'skip' + ['skip', 'extend', 'scoped'].includes(node.callee.property.name) ) return diff --git a/tests/expect-expect.test.ts b/tests/expect-expect.test.ts index bec416ab..57389198 100644 --- a/tests/expect-expect.test.ts +++ b/tests/expect-expect.test.ts @@ -5,6 +5,9 @@ import { ruleTester } from './ruleTester' ruleTester.run(RULE_NAME, rule, { valid: [ 'test.skip("skipped test", () => {})', + 'it.skip("skipped test", () => {})', + 'test.scoped({ dependency: "new" })', + 'it.scoped({ dependency: "new" })', 'it.todo("will test something eventually")', 'test.todo("will test something eventually")', "['x']();",