( target: CiTarget, e2eRoot: string, )
| 219 | |
| 220 | /** Discovers and plans all shards for one configured target. */ |
| 221 | export const planTargetShards = async ( |
| 222 | target: CiTarget, |
| 223 | e2eRoot: string, |
| 224 | ): Promise<readonly CiShardAssignment[]> => { |
| 225 | const paths = await discoverTargetTestFiles(target, e2eRoot); |
| 226 | const weighted = paths.map((path) => ({ |
| 227 | path, |
| 228 | durationMs: durationForTestFile(target, path), |
| 229 | })); |
| 230 | return planCiShards(weighted, CI_SHARD_COUNTS[target]); |
| 231 | }; |
no test coverage detected