diff --git a/.eslintplugin/code-no-test-only.ts b/.eslintplugin/code-no-test-only.ts index a04483ea6ab..d4751eef2ee 100644 --- a/.eslintplugin/code-no-test-only.ts +++ b/.eslintplugin/code-no-test-only.ts @@ -9,10 +9,10 @@ export = new class NoTestOnly implements eslint.Rule.RuleModule { create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener { return { - ['MemberExpression[object.name="test"][property.name="only"]']: (node: any) => { + ['MemberExpression[object.name=/^(test|suite)$/][property.name="only"]']: (node: any) => { return context.report({ node, - message: 'test.only is a dev-time tool and CANNOT be pushed' + message: 'only is a dev-time tool and CANNOT be pushed' }); } };