TypeScript/tests/cases/conformance/externalModules
Gabriela Araujo Britto 9cdbb7248b
Improve errors on module: node12 and extensionless relative imports (#46486)
* add new error + suggestions

* push down assert defined

* remove comment

* fix esm module import detection, update baselines

* add and update new tests

* fix review comments

* remove renamed baseline references

* update node modules test baselines

* fix error message, add new tests

* update old tests with new error message
2021-10-29 10:25:03 -07:00
..
es6 fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
esnext fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
typeOnly Type-only import specifiers (#45998) 2021-09-27 12:38:30 -07:00
amdImportAsPrimaryExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
amdImportNotAsPrimaryExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
asiPreventsParsingAsAmbientExternalModule01.ts Added tests. 2015-06-02 15:42:24 -07:00
asiPreventsParsingAsAmbientExternalModule02.ts Added tests. 2015-06-02 15:42:24 -07:00
circularReference.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
commonJSImportAsPrimaryExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
commonJsImportBindingElementNarrowType.ts Added BindingElement to isSomeImportDeclaration (#43387) 2021-03-31 18:18:16 -07:00
commonJSImportNotAsPrimaryExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
duplicateExportAssignments.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAmbientClassNameWithObject.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportAssignDottedName.ts Support for 'export default' with expressions 2015-02-25 16:03:03 -08:00
exportAssignImportedIdentifier.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentAndDeclaration.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentCircularModules.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentConstrainedGenericType.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentGenericType.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentMergedInterface.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentMergedModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentOfExportNamespaceWithDefault.ts Fix double alias of complex export/import/default/namespace combination 2020-10-29 18:42:36 -07:00
exportAssignmentTopLevelClodule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentTopLevelEnumdule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentTopLevelFundule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentTopLevelIdentifier.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignNonIdentifier.ts Support for 'export default' with expressions 2015-02-25 16:03:03 -08:00
exportAssignTypes.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportClassNameWithObjectAMD.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportClassNameWithObjectCommonJS.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportClassNameWithObjectSystem.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportClassNameWithObjectUMD.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportDeclaredModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportDefaultClassNameWithObject.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportNonInitializedVariablesAMD.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonInitializedVariablesCommonJS.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonInitializedVariablesES6.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonInitializedVariablesSystem.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonInitializedVariablesUMD.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonLocalDeclarations.ts Issue better error for exporting primitive type (#36424) 2020-01-27 08:11:21 -08:00
exportNonVisibleType.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
globalAugmentationModuleResolution.ts Merge release-2.1 into master (#12157) 2016-11-10 14:28:34 -08:00
importImportOnlyModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
importNonExternalModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
importNonStringLiteral.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
importsImplicitlyReadonly.ts Adding tests 2016-01-25 11:46:23 -08:00
importTsBeforeDTs.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
initializersInDeclarations.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
invalidSyntaxNamespaceImportWithAMD.ts Add tests 2017-03-29 13:08:21 -07:00
invalidSyntaxNamespaceImportWithCommonjs.ts Add tests 2017-03-29 13:08:21 -07:00
invalidSyntaxNamespaceImportWithSystem.ts Add tests 2017-03-29 13:08:21 -07:00
moduleResolutionWithExtensions.ts [Transforms] Merge master 08/09 (#10263) 2016-08-26 15:51:10 -07:00
moduleResolutionWithoutExtension1.ts Improve errors on module: node12 and extensionless relative imports (#46486) 2021-10-29 10:25:03 -07:00
moduleResolutionWithoutExtension2.ts Improve errors on module: node12 and extensionless relative imports (#46486) 2021-10-29 10:25:03 -07:00
moduleResolutionWithoutExtension3.ts Improve errors on module: node12 and extensionless relative imports (#46486) 2021-10-29 10:25:03 -07:00
moduleResolutionWithoutExtension4.ts Improve errors on module: node12 and extensionless relative imports (#46486) 2021-10-29 10:25:03 -07:00
moduleResolutionWithoutExtension5.ts Improve errors on module: node12 and extensionless relative imports (#46486) 2021-10-29 10:25:03 -07:00
moduleResolutionWithoutExtension6.ts Improve errors on module: node12 and extensionless relative imports (#46486) 2021-10-29 10:25:03 -07:00
moduleResolutionWithoutExtension7.ts Improve errors on module: node12 and extensionless relative imports (#46486) 2021-10-29 10:25:03 -07:00
moduleResolutionWithoutExtension8.ts Improve errors on module: node12 and extensionless relative imports (#46486) 2021-10-29 10:25:03 -07:00
moduleScoping.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
multipleExportDefault1.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault2.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault3.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault4.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault5.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault6.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
nameDelimitedBySlashes.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
nameWithFileExtension.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
nameWithRelativePaths.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
reexportClassDefinition.ts Test cases that address https://github.com/Microsoft/TypeScript/issues/4288 2015-08-12 15:34:03 -06:00
relativePathMustResolve.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
relativePathToDeclarationFile.ts Fix fallback to classic resolution 2016-02-12 15:40:47 -08:00
topLevelAmbientModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
topLevelAwait.1.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwait.2.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwait.3.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.1.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.2.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.3.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.4.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.5.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.6.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.7.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.8.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.9.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.10.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitErrors.11.ts Reparse top level 'await' in modules (#39084) 2020-06-18 23:43:18 -07:00
topLevelAwaitErrors.12.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelAwaitNonModule.ts Add module: es2022 (#44656) 2021-09-29 17:44:57 -07:00
topLevelFileModule.ts Update node resolution tests 2015-09-15 11:43:28 -07:00
topLevelFileModuleMissing.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
topLevelModuleDeclarationAndFile.ts Update node resolution tests 2015-09-15 11:43:28 -07:00
typesOnlyExternalModuleStillHasInstance.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
umd-augmentation-1.ts Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
umd-augmentation-2.ts Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
umd-augmentation-3.ts Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
umd-augmentation-4.ts Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
umd-errors.ts UMD support 2016-03-09 10:08:24 -08:00
umd1.ts UMD support 2016-03-09 10:08:24 -08:00
umd2.ts UMD support 2016-03-09 10:08:24 -08:00
umd3.ts UMD support 2016-03-09 10:08:24 -08:00
umd4.ts UMD support 2016-03-09 10:08:24 -08:00
umd5.ts UMD support 2016-03-09 10:08:24 -08:00
umd6.ts Support UMD when targeted module uses export = 2016-03-09 10:08:24 -08:00
umd7.ts Add test for function export 2016-03-09 16:24:54 -08:00
umd8.ts Allow type and NS references to UMD globals from modules 2016-09-14 15:56:43 -07:00
umd9.ts Add test 2019-04-08 09:46:47 -07:00