MCPcopy Create free account
hub / github.com/garrytan/gstack / writeFixture

Function writeFixture

test/skill-parser.test.ts:9–14  ·  view source on GitHub ↗
(name: string, content: string)

Source from the content-addressed store, hash-verified

7const FIXTURES_DIR = path.join(os.tmpdir(), 'skill-parser-test');
8
9function writeFixture(name: string, content: string): string {
10 fs.mkdirSync(FIXTURES_DIR, { recursive: true });
11 const p = path.join(FIXTURES_DIR, name);
12 fs.writeFileSync(p, content);
13 return p;
14}
15
16describe('extractBrowseCommands', () => {
17 test('extracts $B commands from bash code blocks', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected