( target: CiTarget, e2eRoot: string, )
| 137 | * supplied e2e root. Results are deduplicated and byte-order sorted. |
| 138 | */ |
| 139 | export const discoverTargetTestFiles = async ( |
| 140 | target: CiTarget, |
| 141 | e2eRoot: string, |
| 142 | ): Promise<readonly string[]> => { |
| 143 | const discovered = await Promise.all( |
| 144 | testDirectories[target].map((directory) => discoverTestFilesInDirectory(e2eRoot, directory)), |
| 145 | ); |
| 146 | const files = new Set(discovered.flat()); |
| 147 | return [...files].sort(comparePaths); |
| 148 | }; |
| 149 | |
| 150 | /** |
| 151 | * Returns the observed duration for a known slow file or a conservative |
no test coverage detected