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

Function writeCodeFile

src/commands/test.test.ts:1562–1567  ·  view source on GitHub ↗
(contents: string)

Source from the content-addressed store, hash-verified

1560
1561describe('runCodePut', () => {
1562 function writeCodeFile(contents: string): string {
1563 const dir = mkdtempSync(join(tmpdir(), 'cli-p4-'));
1564 const path = join(dir, 'updated.spec.ts');
1565 writeFileSync(path, contents, 'utf8');
1566 return path;
1567 }
1568
1569 const SAMPLE_RESPONSE = {
1570 testId: 'test_alpha',

Callers 1

test.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected