Skip to content

Commit

Permalink
JS: More aggressive test file classification
Browse files Browse the repository at this point in the history
  • Loading branch information
asgerf committed Nov 19, 2024
1 parent 0166990 commit d1c9e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript/ql/lib/semmle/javascript/filters/ClassifyFiles.qll
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ predicate isTestFile(File f) {
)
or
f.getAbsolutePath().regexpMatch(".*/__(mocks|tests)__/.*")
or
f.getBaseName().matches("%.test.%")
}

/**
Expand Down

0 comments on commit d1c9e47

Please sign in to comment.