Skip to content

Instantly share code, notes, and snippets.

@jsmanifest
Created March 28, 2020 15:50
Show Gist options
  • Save jsmanifest/4e3ff5b1f0c095870795c6f242ce717e to your computer and use it in GitHub Desktop.
Save jsmanifest/4e3ff5b1f0c095870795c6f242ce717e to your computer and use it in GitHub Desktop.
function hasTest(testDir) {
for (let index = 0; index < testDir.length; index++) {
const filename = testDir[index]
if (filename.endsWith('.test.js')) {
return true
}
}
return false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment