diff --git a/src/rules/no-commented-out-tests.ts b/src/rules/no-commented-out-tests.ts index 348a0d3..d477607 100644 --- a/src/rules/no-commented-out-tests.ts +++ b/src/rules/no-commented-out-tests.ts @@ -6,9 +6,7 @@ export type MESSAGE_IDS = 'noCommentedOutTests'; export type Options = []; function hasTests(node: TSESTree.Comment) { - return /^\s*[xf]?(test|it|describe)(\.\w+|\[['"]\w+['"]\])?\s*\(/mu.test( - node.value - ) + return /^\s*[xf]?(test|it|describe)(\.\w+|\[['"]\w+['"]\])?\s*\(/mu.test(node.value) } export default createEslintRule({ @@ -20,7 +18,7 @@ export default createEslintRule({ recommended: 'warn' }, messages: { - noCommentedOutTests: 'Remove commented out tests' + noCommentedOutTests: 'Remove commented out tests. You may want to use `skip` or `only` instead.' }, schema: [], type: 'suggestion'