MCPcopy Create free account
hub / github.com/ampproject/amphtml / isUnitTest

Function isUnitTest

build-system/tasks/runtime-test/helpers-unit.js:200–204  ·  view source on GitHub ↗

* @param {string} file * @return {boolean}

(file)

Source from the content-addressed store, hash-verified

198 * @return {boolean}
199 */
200 function isUnitTest(file) {
201 return unitTestPaths.some((pattern) => {
202 return minimatch(file, pattern);
203 });
204 }
205
206 /**
207 * @param {string} testFile

Callers 1

unitTestsToRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected