* Retrieves the set of unit tests that should be run * for a set of source files. * * @param {string[]} srcFiles * @return {string[]}
(srcFiles)
| 225 | * @return {string[]} |
| 226 | */ |
| 227 | function getTestsFor(srcFiles) { |
| 228 | const allUnitTests = fastGlob.sync(unitTestPaths); |
| 229 | return allUnitTests.filter((testFile) => { |
| 230 | return shouldRunTest(testFile, srcFiles); |
| 231 | }); |
| 232 | } |
| 233 | |
| 234 | filesChanged.forEach((file) => { |
| 235 | if (!fs.existsSync(file)) { |
no test coverage detected