test: Add importAssertions to TS tests and update TS tests (#14127)

This commit is contained in:
Sosuke Suzuki
2022-01-10 23:38:01 +09:00
committed by GitHub
parent 1c32b670ce
commit 04f3f17556
3 changed files with 6 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ anyDeclare.ts
argumentsBindsToFunctionScopeArgumentList.ts
argumentsReferenceInConstructor4_Js.ts
argumentsReferenceInMethod4_Js.ts
argumentsReferenceInObjectLiteral_Js.ts
arrayOfExportedClass.ts
asiAbstract.ts
asyncFunctionsAcrossFiles.ts
@@ -154,6 +155,7 @@ duplicateLabel2.ts
duplicateVarAndImport.ts
duplicateVarAndImport2.ts
duplicateVarsAcrossFileBoundaries.ts
dynamicImportTrailingComma.ts
dynamicNames.ts
elidedEmbeddedStatementsReplacedWithSemicolon.ts
emitClassMergedWithConstNamespaceNotElided.ts
@@ -248,6 +250,7 @@ importAsBaseClass.ts
importDecl.ts
importDeclWithClassModifiers.ts
importDeclWithDeclareModifierInAmbientContext.ts
importEqualsError45874.ts
importHelpers.ts
importHelpersAmd.ts
importHelpersES6.ts
@@ -407,6 +410,7 @@ redeclareParameterInCatchBlock.ts
reexportedMissingAlias.ts
relativeNamesInClassicResolution.ts
requireAsFunctionInExternalModule.ts
reservedWords3.ts
restParamModifier2.ts
shadowedReservedCompilerDeclarationsWithNoEmit.ts
shorthandPropertyAssignmentInES6Module.ts

View File

@@ -16,7 +16,7 @@ async function* loadTests(dir) {
}
}
const plugins = ["typescript", "decorators-legacy"];
const plugins = ["typescript", "decorators-legacy", "importAssertions"];
const TSTestsPath = path.join(dirname, "../../../build/typescript/tests");