Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoCommentedOutTestsRule = rule.Rule{ Name: "jest/no-commented-out-tests", Run: func(ctx rule.RuleContext, options any) rule.RuleListeners { text := ctx.SourceFile.Text() utils.ForEachComment(ctx.SourceFile.AsNode(), func(comment *ast.CommentRange) { if comment == nil { return } inner := commentInnerText(text, comment) if inner == "" || !commentedTestRegexp.MatchString(inner) { return } ctx.ReportRange( core.NewTextRange(comment.Pos(), comment.End()), buildCommentedTestsMessage(), ) }, ctx.SourceFile) return rule.RuleListeners{} }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.