MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isTestLike

Function isTestLike

scripts/oxlint-plugin-executor/utils.js:18–23  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

16}
17
18export function isTestLike(filename) {
19 const normalized = toRepoRelative(filename);
20 return (
21 /(\.|\/)(test|spec|e2e|node\.test)\.tsx?$/.test(normalized) || normalized.startsWith("tests/")
22 );
23}
24
25export function isDeclarationFile(filename) {
26 return toRepoRelative(filename).endsWith(".d.ts");

Callers 2

createFunction · 0.90
createFunction · 0.90

Calls 1

toRepoRelativeFunction · 0.85

Tested by

no test coverage detected