replace whitelist by allowlist in parser-tests (#11727)

This commit is contained in:
Huáng Jùnliàng
2020-06-17 15:32:46 -04:00
committed by GitHub
parent fd3c76941e
commit e498bee10f
8 changed files with 38 additions and 38 deletions

View File

@@ -45,9 +45,9 @@ async function baselineContainsParserErrorCodes(testName) {
const runner = new TestRunner({
testDir: path.join(TSTestsPath, "./cases/compiler"),
whitelist: path.join(__dirname, "whitelist.txt"),
allowlist: path.join(__dirname, "allowlist.txt"),
logInterval: 50,
shouldUpdate: process.argv.includes("--update-whitelist"),
shouldUpdate: process.argv.includes("--update-allowlist"),
async *getTests() {
for await (const test of loadTests(this.testDir)) {