MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / pickCodeExtension

Function pickCodeExtension

src/lib/bundle.ts:331–338  ·  view source on GitHub ↗
(language: string, framework: string)

Source from the content-addressed store, hash-verified

329 * language, not the user-app code under test.
330 */
331export 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

Callers 3

plannedBundleFilesFunction · 0.85
writeBundleFunction · 0.85
bundle.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected