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

Function discoverTargetTestFiles

e2e/scripts/ci-shard.ts:139–148  ·  view source on GitHub ↗
(
  target: CiTarget,
  e2eRoot: string,
)

Source from the content-addressed store, hash-verified

137 * supplied e2e root. Results are deduplicated and byte-order sorted.
138 */
139export 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

Callers 2

ci-shard.test.tsFile · 0.90
planTargetShardsFunction · 0.85

Calls 1

Tested by

no test coverage detected