[K/JS] test: add @file:JsExport tests for each @JsExport test + auto-generate TypeScript export tests.

This commit is contained in:
Artem Kobzar
2022-08-26 09:51:59 +00:00
committed by Space
parent d65775ca1a
commit dbda8dcad1
139 changed files with 4242 additions and 31 deletions
@@ -413,12 +413,24 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/nonConsumableIdentifiers.kt");
}
@Test
@TestMetadata("nonConsumableIdentifiersInExportedFile.kt")
public void testNonConsumableIdentifiersInExportedFile() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/nonConsumableIdentifiersInExportedFile.kt");
}
@Test
@TestMetadata("secondaryConstructorWithoutJsName.kt")
public void testSecondaryConstructorWithoutJsName() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/secondaryConstructorWithoutJsName.kt");
}
@Test
@TestMetadata("secondaryConstructorWithoutJsNameInExportedFile.kt")
public void testSecondaryConstructorWithoutJsNameInExportedFile() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/secondaryConstructorWithoutJsNameInExportedFile.kt");
}
@Test
@TestMetadata("unexportableTypesInSignature.kt")
public void testUnexportableTypesInSignature() throws Exception {