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

Method getAllowlist

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

Source from the content-addressed store, hash-verified

95 }
96
97 async getAllowlist() {
98 const contents = await fs.readFile(this.allowlist, "utf-8");
99 const table = new Set();
100
101 for (const line of contents.split("\n")) {
102 const testId = TestRunner.getTestIdFromAllowlistLine(line);
103 if (testId) table.add(testId);
104 }
105
106 return table;
107 }
108
109 /**
110 * Update the allowlist based on the test results.

Callers 1

runMethod · 0.95

Calls 2

addMethod · 0.45

Tested by

no test coverage detected