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

Method getAllowlist

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

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.95

Calls 2

addMethod · 0.45

Tested by

no test coverage detected