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

Function getParserTestsCommit

Makefile.source.ts:547–552  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

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

Callers 1

bootstrapParserTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected