(language: string, framework: string)
| 329 | * language, not the user-app code under test. |
| 330 | */ |
| 331 | export function pickCodeExtension(language: string, framework: string): string { |
| 332 | if (language === 'python') return 'py'; |
| 333 | if (language === 'javascript') return 'js'; |
| 334 | if (language === 'typescript') return 'ts'; |
| 335 | // Fallback: framework-keyed default. pytest is python, playwright TS. |
| 336 | if (framework === 'pytest') return 'py'; |
| 337 | return 'ts'; |
| 338 | } |
| 339 | |
| 340 | /** |
| 341 | * Step filename per §7.2 — 1-based index, zero-padded to two digits |
no outgoing calls
no test coverage detected