We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6606018 commit e4275c5Copy full SHA for e4275c5
src/rules/no-commented-out-tests.ts
@@ -2,7 +2,7 @@ import { TSESTree } from '@typescript-eslint/experimental-utils';
2
import { createRule } from './utils';
3
4
function hasTests(node: TSESTree.Comment) {
5
- return /^\s*(x|f)?(test|it|describe)(\.\w+|\[['"]\w+['"]\])?\s*\(/m.test(
+ return /^\s*[xf]?(test|it|describe)(\.\w+|\[['"]\w+['"]\])?\s*\(/m.test(
6
node.value,
7
);
8
}
0 commit comments