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

Method getAllowlist

scripts/parser-tests/utils/parser-test-runner.js:88–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 async getAllowlist() {
89 const contents = await fs.readFile(this.allowlist, "utf-8");
90 const table = new Set();
91
92 for (const line of contents.split("\n")) {
93 const filename = line.replace(/#.*$/, "").trim();
94 if (filename) table.add(filename);
95 }
96
97 return table;
98 }
99
100 /**
101 * Update the allowlist based on the test results.

Callers 1

runMethod · 0.95

Calls 2

replaceMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected