(requiredScenarios)
| 311 | } |
| 312 | |
| 313 | function assertRequiredFrameFillVariants(requiredScenarios) { |
| 314 | const keys = new Set(requiredScenarios.map((d) => d.key)); |
| 315 | for (const required of REQUIRED_FRAME_FILL_VARIANTS) { |
| 316 | const key = makeDescriptorKey(required.scenario, required.framework, required.params); |
| 317 | if (!keys.has(key)) { |
| 318 | throw new Error( |
| 319 | [ |
| 320 | "requiredScenarios must explicitly include terminal-frame-fill variants:", |
| 321 | "- scenario=terminal-frame-fill framework=rezi-native params={rows:40,cols:120,dirtyLines:1}", |
| 322 | "- scenario=terminal-frame-fill framework=rezi-native params={rows:40,cols:120,dirtyLines:40}", |
| 323 | ].join("\n"), |
| 324 | ); |
| 325 | } |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | export function normalizeComparatorConfig(rawConfig) { |
| 330 | if (!isPlainObject(rawConfig)) { |
no test coverage detected