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

Function getParserTestsCommit

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

Source from the content-addressed store, hash-verified

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

Callers 1

bootstrapParserTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected