MCPcopy Create free account
hub / github.com/babel/babel / getParserTestsCommit

Function getParserTestsCommit

Makefile.source.ts:546–551  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

544 subPaths: string[]
545) {
546 function getParserTestsCommit(id: string): string {
547 const content = readFileSync("./Makefile", "utf8");
548 const commit = new RegExp(`${id}_COMMIT = (\\w{40})`).exec(content)![1];
549 if (!commit) throw new Error(`Could not find ${id}_COMMIT in Makefile`);
550 return commit;
551 }
552
553 const dir = "./build/" + name.toLowerCase();
554

Callers 1

bootstrapParserTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected