From 8d4948c3eeec2fdf9467604ae86ec287cbc4f178 Mon Sep 17 00:00:00 2001 From: Artem Kobzar Date: Tue, 5 Mar 2024 15:33:56 +0000 Subject: [PATCH] [K/Wasm] Generate .d.ts tests for K/Wasm in the same way as we do for K/JS ^KT-65778 Fixed --- .../typeScriptDeclarations/generics.kt | 39 --- js/js.tests/build.gradle.kts | 31 +- .../generators/tests/GenerateJsTests.kt | 8 +- .../kotlin/js/test/ir/AbstractJsIrTest.kt | 4 +- ...irJsCodegenWasmJsInteropTestGenerated.java | 11 - ...sES6CodegenWasmJsInteropTestGenerated.java | 11 - ...FirJsES6TypeScriptExportTestGenerated.java | 324 +++++++++--------- .../FirJsTypeScriptExportTestGenerated.java | 324 +++++++++--------- ...IrCodegenWasmJsInteropJsTestGenerated.java | 11 - .../IrJsES6TypeScriptExportTestGenerated.java | 324 +++++++++--------- .../ir/IrJsTypeScriptExportTestGenerated.java | 324 +++++++++--------- .../deprecated-in-exported-file/tsconfig.json | 4 - .../deprecated/tsconfig.json | 4 - .../tsconfig.json | 4 - .../enum-classes/tsconfig.json | 4 - .../tsconfig.json | 4 - .../escaped-declarations/tsconfig.json | 4 - .../tsconfig.json | 4 - .../tsconfig.json | 4 - .../functions-in-exported-file/tsconfig.json | 4 - .../typescript-export/functions/tsconfig.json | 4 - .../implicit-export/tsconfig.json | 4 - .../inheritance/tsconfig.json | 4 - .../tsconfig.json | 4 - .../inner-classes/tsconfig.json | 4 - .../interfaces-in-exported-file/tsconfig.json | 3 - .../interfaces/tsconfig.json | 3 - .../js-name-in-exported-file/tsconfig.json | 3 - .../typescript-export/js-name/tsconfig.json | 3 - .../abstract-classes.d.ts | 0 .../abstract-classes.kt | 0 .../abstract-classes__main.ts | 0 .../tsconfig.json | 4 + .../abstract-classes/abstract-classes.d.ts | 0 .../abstract-classes/abstract-classes.kt | 0 .../abstract-classes__main.ts | 0 .../js/abstract-classes/tsconfig.json | 4 + .../collections.d.ts | 0 .../collections.kt | 0 .../collections__main.ts | 0 .../tsconfig.json | 4 + .../{ => js}/collections/collections.d.ts | 0 .../{ => js}/collections/collections.kt | 0 .../{ => js}/collections/collections__main.ts | 0 .../js/collections/tsconfig.json | 4 + .../typescript-export/js/common.tsconfig.json | 8 + .../constructors.d.ts | 0 .../constructors.kt | 0 .../constructors__main.ts | 0 .../tsconfig.json | 4 + .../{ => js}/constructors/constructors.d.ts | 0 .../{ => js}/constructors/constructors.kt | 0 .../constructors/constructors__main.ts | 0 .../js/constructors/tsconfig.json | 4 + .../data-classes.d.ts | 0 .../data-classes.kt | 0 .../data-classes__main.ts | 0 .../tsconfig.json | 4 + .../{ => js}/data-classes/data-classes.d.ts | 0 .../{ => js}/data-classes/data-classes.kt | 0 .../data-classes/data-classes__main.ts | 0 .../js/data-classes/tsconfig.json | 4 + .../deprecated.d.ts | 0 .../deprecated-in-exported-file/deprecated.kt | 0 .../deprecated__main.ts | 0 .../deprecated-in-exported-file/tsconfig.json | 4 + .../{ => js}/deprecated/deprecated.d.ts | 0 .../{ => js}/deprecated/deprecated.kt | 0 .../{ => js}/deprecated/deprecated__main.ts | 0 .../js/deprecated/tsconfig.json | 4 + .../enum-classes.d.ts | 0 .../enum-classes.kt | 0 .../enum-classes__main.ts | 0 .../tsconfig.json | 4 + .../{ => js}/enum-classes/enum-classes.d.ts | 0 .../{ => js}/enum-classes/enum-classes.kt | 0 .../enum-classes/enum-classes__main.ts | 0 .../js/enum-classes/tsconfig.json | 4 + .../escaped-declarations.d.ts | 0 .../escaped-declarations.kt | 0 .../escaped-declarations__main.ts | 0 .../tsconfig.json | 4 + .../escaped-declarations.d.ts | 0 .../escaped-declarations.kt | 0 .../escaped-declarations__main.ts | 0 .../js/escaped-declarations/tsconfig.json | 4 + .../excluded-exported-declarations.d.ts | 0 .../excluded-exported-declarations.kt | 0 .../excluded-exported-declarations__main.ts | 0 .../tsconfig.json | 4 + .../excluded-exported-declarations.d.ts | 0 .../excluded-exported-declarations.kt | 0 .../excluded-exported-declarations__main.ts | 0 .../tsconfig.json | 4 + .../functions-in-exported-file/functions.d.ts | 0 .../functions-in-exported-file/functions.kt | 0 .../functions__main.ts | 0 .../functions-in-exported-file/tsconfig.json | 4 + .../{ => js}/functions/functions.d.ts | 0 .../{ => js}/functions/functions.kt | 0 .../{ => js}/functions/functions__main.ts | 0 .../js/functions/tsconfig.json | 4 + .../implicit-export/implicit-export.d.ts | 0 .../implicit-export/implicit-export.kt | 0 .../implicit-export/implicit-export__main.ts | 0 .../js/implicit-export/tsconfig.json | 4 + .../{ => js}/inheritance/inheritance.d.ts | 0 .../{ => js}/inheritance/inheritance.kt | 0 .../{ => js}/inheritance/inheritance__main.ts | 0 .../js/inheritance/tsconfig.json | 4 + .../inner-class.d.ts | 0 .../inner-class.kt | 0 .../inner-class__main.ts | 0 .../tsconfig.json | 4 + .../{ => js}/inner-classes/inner-class.d.ts | 0 .../{ => js}/inner-classes/inner-class.kt | 0 .../inner-classes/inner-class__main.ts | 0 .../js/inner-classes/tsconfig.json | 4 + .../interfaces.d.ts | 0 .../interfaces-in-exported-file/interfaces.kt | 0 .../interfaces__main.ts | 0 .../interfaces-in-exported-file/tsconfig.json | 3 + .../{ => js}/interfaces/interfaces.d.ts | 0 .../{ => js}/interfaces/interfaces.kt | 0 .../{ => js}/interfaces/interfaces__main.ts | 0 .../js/interfaces/tsconfig.json | 3 + .../js-name-in-exported-file/js-name.d.ts | 0 .../js-name-in-exported-file/js-name.kt | 0 .../js-name-in-exported-file/js-name__main.ts | 0 .../js/js-name-in-exported-file/tsconfig.json | 3 + .../{ => js}/js-name/js-name.d.ts | 0 .../{ => js}/js-name/js-name.kt | 0 .../{ => js}/js-name/js-name__main.ts | 0 .../js/js-name/tsconfig.json | 3 + .../member-properties.d.ts | 0 .../member-properties.kt | 0 .../member-properties__main.ts | 0 .../tsconfig.json | 4 + .../member-properties/member-properties.d.ts | 0 .../member-properties/member-properties.kt | 0 .../member-properties__main.ts | 0 .../js/member-properties/tsconfig.json | 4 + .../methods-in-exported-file/methods.d.ts | 0 .../methods-in-exported-file/methods.kt | 0 .../methods-in-exported-file/methods__main.ts | 0 .../js/methods-in-exported-file/tsconfig.json | 4 + .../{ => js}/methods/methods.d.ts | 0 .../{ => js}/methods/methods.kt | 0 .../{ => js}/methods/methods__main.ts | 0 .../js/methods/tsconfig.json | 4 + .../commonjs.d.ts | 0 .../commonjs.kt | 0 .../module-systems-in-exported-file/esm.d.ts | 0 .../module-systems-in-exported-file/esm.kt | 0 .../plain.d.ts | 0 .../module-systems-in-exported-file/plain.kt | 0 .../tsconfig.json | 0 .../module-systems-in-exported-file/umd.d.ts | 0 .../module-systems-in-exported-file/umd.kt | 0 .../{ => js}/module-systems/commonjs.d.ts | 0 .../{ => js}/module-systems/commonjs.kt | 0 .../{ => js}/module-systems/esm.d.ts | 0 .../{ => js}/module-systems/esm.kt | 0 .../{ => js}/module-systems/plain.d.ts | 0 .../{ => js}/module-systems/plain.kt | 0 .../{ => js}/module-systems/tsconfig.json | 0 .../{ => js}/module-systems/umd.d.ts | 0 .../{ => js}/module-systems/umd.kt | 0 .../namespaces.d.ts | 0 .../namespaces-in-exported-file/namespaces.kt | 0 .../namespaces__main.ts | 0 .../namespaces-in-exported-file/tsconfig.json | 4 + .../{ => js}/namespaces/namespaces.d.ts | 0 .../{ => js}/namespaces/namespaces.kt | 0 .../{ => js}/namespaces/namespaces__main.ts | 0 .../js/namespaces/tsconfig.json | 4 + .../not-exported-declarations.d.ts | 0 .../not-exported-declarations.kt | 0 .../not-exported-declarations__main.ts | 0 .../tsconfig.json | 4 + .../not-exported-declarations.d.ts | 0 .../not-exported-declarations.kt | 0 .../not-exported-declarations__main.ts | 0 .../not-exported-declarations/tsconfig.json | 4 + .../objects-in-exported-file/objects.d.ts | 0 .../objects-in-exported-file/objects.kt | 0 .../objects-in-exported-file/objects__main.ts | 0 .../js/objects-in-exported-file/tsconfig.json | 4 + .../{ => js}/objects/objects.d.ts | 0 .../{ => js}/objects/objects.kt | 0 .../{ => js}/objects/objects__main.ts | 0 .../js/objects/tsconfig.json | 4 + .../primitives.d.ts | 0 .../primitives-in-exported-file/primitives.kt | 0 .../primitives__main.ts | 0 .../primitives-in-exported-file/tsconfig.json | 4 + .../{ => js}/primitives/primitives.d.ts | 0 .../{ => js}/primitives/primitives.kt | 0 .../{ => js}/primitives/primitives__main.ts | 0 .../js/primitives/tsconfig.json | 4 + .../private-primary-constructor.d.ts | 0 .../private-primary-constructor.kt | 0 .../private-primary-constructor__main.ts | 0 .../private-primary-constructor/tsconfig.json | 4 + .../properties.d.ts | 0 .../properties-in-exported-file/properties.kt | 0 .../properties__main.ts | 0 .../properties-in-exported-file/tsconfig.json | 4 + .../{ => js}/properties/properties.d.ts | 0 .../{ => js}/properties/properties.kt | 0 .../{ => js}/properties/properties__main.ts | 0 .../js/properties/tsconfig.json | 4 + .../regular-classes.d.ts | 0 .../regular-classes.kt | 0 .../regular-classes__main.ts | 0 .../tsconfig.json | 4 + .../regular-classes/regular-classes.d.ts | 0 .../regular-classes/regular-classes.kt | 0 .../regular-classes/regular-classes__main.ts | 0 .../js/regular-classes/tsconfig.json | 4 + .../sealed-classes.d.ts | 0 .../sealed-classes.kt | 0 .../sealed-classes__main.ts | 0 .../tsconfig.json | 4 + .../sealed-classes/sealed-classes.d.ts | 0 .../{ => js}/sealed-classes/sealed-classes.kt | 0 .../sealed-classes/sealed-classes__main.ts | 0 .../js/sealed-classes/tsconfig.json | 4 + .../selective-export/selective-export.d.ts | 0 .../selective-export/selective-export.kt | 0 .../selective-export__main.ts | 0 .../js/selective-export/tsconfig.json | 4 + .../strict-implicit-export.d.ts | 0 .../strict-implicit-export.kt | 0 .../strict-implicit-export__main.ts | 0 .../js/strict-implicit-export/tsconfig.json | 4 + .../visibility-in-exported-file/tsconfig.json | 4 + .../visibility.d.ts | 0 .../visibility-in-exported-file/visibility.kt | 0 .../visibility__main.ts | 0 .../js/visibility/tsconfig.json | 4 + .../{ => js}/visibility/visibility.d.ts | 0 .../{ => js}/visibility/visibility.kt | 0 .../{ => js}/visibility/visibility__main.ts | 0 .../tsconfig.json | 4 - .../member-properties/tsconfig.json | 4 - .../methods-in-exported-file/tsconfig.json | 4 - .../typescript-export/methods/tsconfig.json | 4 - .../namespaces-in-exported-file/tsconfig.json | 4 - .../namespaces/tsconfig.json | 4 - .../tsconfig.json | 4 - .../not-exported-declarations/tsconfig.json | 4 - .../objects-in-exported-file/tsconfig.json | 4 - .../typescript-export/objects/tsconfig.json | 4 - .../primitives-in-exported-file/tsconfig.json | 4 - .../primitives/tsconfig.json | 4 - .../private-primary-constructor/tsconfig.json | 4 - .../properties-in-exported-file/tsconfig.json | 4 - .../properties/tsconfig.json | 4 - .../tsconfig.json | 4 - .../regular-classes/tsconfig.json | 4 - .../tsconfig.json | 4 - .../sealed-classes/tsconfig.json | 4 - .../selective-export/tsconfig.json | 4 - .../strict-implicit-export/tsconfig.json | 4 - .../visibility-in-exported-file/tsconfig.json | 4 - .../visibility/tsconfig.json | 4 - .../wasm/common.tsconfig.json | 7 + .../externalDeclarations.kt | 8 - .../externalDeclarations__main.ts | 3 + .../wasm/externalDeclarations/index.d.mts | 2 +- .../externalDeclarations}/tsconfig.json | 0 .../wasm/generics/generics.kt | 28 ++ .../wasm/generics/generics__main.ts | 6 + .../wasm/generics/index.d.mts | 0 .../generics}/tsconfig.json | 0 .../wasm/jsPrimitives/index.d.mts | 0 .../wasm/jsPrimitives/jsPrimitives.kt | 32 ++ .../wasm/jsPrimitives/jsPrimitives__main.ts | 55 +-- .../jsPrimitives}/tsconfig.json | 0 .../wasm/nullableJsPrimitives/index.d.mts | 0 .../nullableJsPrimitives.kt | 32 ++ .../nullableJsPrimitives__main.ts | 55 +-- .../nullableJsPrimitives}/tsconfig.json | 0 .../wasm/nullablePrimitives/index.d.mts | 0 .../nullablePrimitives/nullablePrimitives.kt | 50 +++ .../nullablePrimitives__main.ts | 85 +---- .../nullablePrimitives}/tsconfig.json | 0 .../wasm/nullableUnsigned/index.d.mts | 0 .../wasm/nullableUnsigned/nullableUnsinged.kt | 32 ++ .../nullableUnsinged__main.ts | 53 +-- .../nullableUnsigned}/tsconfig.json | 0 .../wasm/primitives/index.d.mts | 0 .../wasm/primitives/primitives.kt | 60 ++++ .../wasm/primitives/primitives__main.ts | 93 +---- .../primitives}/tsconfig.json | 0 .../wasm/unsigned/index.d.mts | 0 .../unsigned}/tsconfig.json | 0 .../wasm/unsigned/unsinged.kt | 32 ++ .../wasm/unsigned/unsinged__main.ts | 51 +-- .../buildsrc-compat/src/main/kotlin/utils.kt | 29 ++ wasm/wasm.tests/build.gradle.kts | 51 +++ .../generators/tests/GenerateWasmTests.kt | 10 + .../kotlin/wasm/test/AbstractK1WasmTest.kt | 27 +- .../AbstractWasmArtifactsCollector.kt | 8 + .../wasm/test/handlers/WasmDtsHandler.kt | 5 +- .../FirWasmJsCodegenInteropTestGenerated.java | 59 ---- .../FirWasmTypeScriptExportTestGenerated.java | 155 +++++++++ ...WasmCodegenWasmJsInteropTestGenerated.java | 59 ---- .../K1WasmTypeScriptExportTestGenerated.java | 155 +++++++++ 310 files changed, 1643 insertions(+), 1370 deletions(-) delete mode 100644 compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.kt delete mode 100644 js/js.translator/testData/typescript-export/deprecated-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/deprecated/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/enum-classes-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/enum-classes/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/escaped-declarations/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/excluded-exported-declarations/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/functions-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/functions/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/implicit-export/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/inheritance/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/inner-classes-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/inner-classes/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/interfaces-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/interfaces/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/js-name-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/js-name/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/abstract-classes-in-exported-file/abstract-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/abstract-classes-in-exported-file/abstract-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/abstract-classes-in-exported-file/abstract-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/abstract-classes/abstract-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/abstract-classes/abstract-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/abstract-classes/abstract-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/abstract-classes/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/collections-in-exported-file/collections.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/collections-in-exported-file/collections.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/collections-in-exported-file/collections__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/collections-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/collections/collections.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/collections/collections.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/collections/collections__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/collections/tsconfig.json create mode 100644 js/js.translator/testData/typescript-export/js/common.tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/constructors-in-exported-file/constructors.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/constructors-in-exported-file/constructors.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/constructors-in-exported-file/constructors__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/constructors-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/constructors/constructors.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/constructors/constructors.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/constructors/constructors__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/constructors/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/data-classes-in-exported-file/data-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/data-classes-in-exported-file/data-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/data-classes-in-exported-file/data-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/data-classes/data-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/data-classes/data-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/data-classes/data-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/data-classes/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/deprecated-in-exported-file/deprecated.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/deprecated-in-exported-file/deprecated.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/deprecated-in-exported-file/deprecated__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/deprecated/deprecated.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/deprecated/deprecated.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/deprecated/deprecated__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/deprecated/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/enum-classes-in-exported-file/enum-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/enum-classes-in-exported-file/enum-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/enum-classes-in-exported-file/enum-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/enum-classes/enum-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/enum-classes/enum-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/enum-classes/enum-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/enum-classes/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/escaped-declarations-in-exported-file/escaped-declarations.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/escaped-declarations-in-exported-file/escaped-declarations.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/escaped-declarations-in-exported-file/escaped-declarations__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/escaped-declarations/escaped-declarations.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/escaped-declarations/escaped-declarations.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/escaped-declarations/escaped-declarations__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/escaped-declarations/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/excluded-exported-declarations-in-exported-file/excluded-exported-declarations__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/excluded-exported-declarations/excluded-exported-declarations.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/excluded-exported-declarations/excluded-exported-declarations.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/excluded-exported-declarations/excluded-exported-declarations__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/excluded-exported-declarations/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/functions-in-exported-file/functions.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/functions-in-exported-file/functions.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/functions-in-exported-file/functions__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/functions-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/functions/functions.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/functions/functions.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/functions/functions__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/functions/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/implicit-export/implicit-export.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/implicit-export/implicit-export.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/implicit-export/implicit-export__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/implicit-export/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/inheritance/inheritance.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/inheritance/inheritance.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/inheritance/inheritance__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/inheritance/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/inner-classes-in-exported-file/inner-class.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/inner-classes-in-exported-file/inner-class.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/inner-classes-in-exported-file/inner-class__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/inner-classes/inner-class.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/inner-classes/inner-class.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/inner-classes/inner-class__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/inner-classes/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/interfaces-in-exported-file/interfaces.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/interfaces-in-exported-file/interfaces.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/interfaces-in-exported-file/interfaces__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/interfaces/interfaces.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/interfaces/interfaces.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/interfaces/interfaces__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/interfaces/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/js-name-in-exported-file/js-name.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/js-name-in-exported-file/js-name.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/js-name-in-exported-file/js-name__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/js-name-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/js-name/js-name.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/js-name/js-name.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/js-name/js-name__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/js-name/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/member-properties-in-exported-file/member-properties.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/member-properties-in-exported-file/member-properties.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/member-properties-in-exported-file/member-properties__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/member-properties/member-properties.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/member-properties/member-properties.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/member-properties/member-properties__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/member-properties/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/methods-in-exported-file/methods.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/methods-in-exported-file/methods.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/methods-in-exported-file/methods__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/methods-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/methods/methods.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/methods/methods.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/methods/methods__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/methods/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/commonjs.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/commonjs.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/esm.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/esm.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/plain.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/plain.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/tsconfig.json (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/umd.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems-in-exported-file/umd.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/commonjs.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/commonjs.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/esm.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/esm.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/plain.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/plain.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/tsconfig.json (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/umd.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/module-systems/umd.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/namespaces-in-exported-file/namespaces.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/namespaces-in-exported-file/namespaces.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/namespaces-in-exported-file/namespaces__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/namespaces/namespaces.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/namespaces/namespaces.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/namespaces/namespaces__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/namespaces/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/not-exported-declarations-in-exported-file/not-exported-declarations.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/not-exported-declarations-in-exported-file/not-exported-declarations.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/not-exported-declarations-in-exported-file/not-exported-declarations__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/not-exported-declarations/not-exported-declarations.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/not-exported-declarations/not-exported-declarations.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/not-exported-declarations/not-exported-declarations__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/not-exported-declarations/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/objects-in-exported-file/objects.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/objects-in-exported-file/objects.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/objects-in-exported-file/objects__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/objects-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/objects/objects.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/objects/objects.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/objects/objects__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/objects/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/primitives-in-exported-file/primitives.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/primitives-in-exported-file/primitives.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/primitives-in-exported-file/primitives__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/primitives-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/primitives/primitives.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/primitives/primitives.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/primitives/primitives__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/primitives/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/private-primary-constructor/private-primary-constructor.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/private-primary-constructor/private-primary-constructor.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/private-primary-constructor/private-primary-constructor__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/private-primary-constructor/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/properties-in-exported-file/properties.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/properties-in-exported-file/properties.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/properties-in-exported-file/properties__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/properties-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/properties/properties.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/properties/properties.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/properties/properties__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/properties/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/regular-classes-in-exported-file/regular-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/regular-classes-in-exported-file/regular-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/regular-classes-in-exported-file/regular-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/regular-classes/regular-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/regular-classes/regular-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/regular-classes/regular-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/regular-classes/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/sealed-classes-in-exported-file/sealed-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/sealed-classes-in-exported-file/sealed-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/sealed-classes-in-exported-file/sealed-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/sealed-classes/sealed-classes.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/sealed-classes/sealed-classes.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/sealed-classes/sealed-classes__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/sealed-classes/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/selective-export/selective-export.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/selective-export/selective-export.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/selective-export/selective-export__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/selective-export/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/strict-implicit-export/strict-implicit-export.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/strict-implicit-export/strict-implicit-export.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/strict-implicit-export/strict-implicit-export__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/strict-implicit-export/tsconfig.json create mode 100644 js/js.translator/testData/typescript-export/js/visibility-in-exported-file/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/visibility-in-exported-file/visibility.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/visibility-in-exported-file/visibility.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/visibility-in-exported-file/visibility__main.ts (100%) create mode 100644 js/js.translator/testData/typescript-export/js/visibility/tsconfig.json rename js/js.translator/testData/typescript-export/{ => js}/visibility/visibility.d.ts (100%) rename js/js.translator/testData/typescript-export/{ => js}/visibility/visibility.kt (100%) rename js/js.translator/testData/typescript-export/{ => js}/visibility/visibility__main.ts (100%) delete mode 100644 js/js.translator/testData/typescript-export/member-properties-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/member-properties/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/methods-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/methods/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/namespaces-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/namespaces/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/not-exported-declarations/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/objects-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/objects/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/primitives-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/primitives/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/private-primary-constructor/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/properties-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/properties/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/regular-classes-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/regular-classes/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/sealed-classes/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/selective-export/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/strict-implicit-export/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/visibility-in-exported-file/tsconfig.json delete mode 100644 js/js.translator/testData/typescript-export/visibility/tsconfig.json create mode 100644 js/js.translator/testData/typescript-export/wasm/common.tsconfig.json rename {compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations => js/js.translator/testData/typescript-export/wasm/externalDeclarations}/externalDeclarations.kt (84%) create mode 100644 js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations__main.ts rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.d.ts => js/js.translator/testData/typescript-export/wasm/externalDeclarations/index.d.mts (99%) rename js/js.translator/testData/typescript-export/{abstract-classes-in-exported-file => wasm/externalDeclarations}/tsconfig.json (100%) create mode 100644 js/js.translator/testData/typescript-export/wasm/generics/generics.kt create mode 100644 js/js.translator/testData/typescript-export/wasm/generics/generics__main.ts rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.d.ts => js/js.translator/testData/typescript-export/wasm/generics/index.d.mts (100%) rename js/js.translator/testData/typescript-export/{abstract-classes => wasm/generics}/tsconfig.json (100%) rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.d.ts => js/js.translator/testData/typescript-export/wasm/jsPrimitives/index.d.mts (100%) create mode 100644 js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives.kt rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.kt => js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives__main.ts (54%) rename js/js.translator/testData/typescript-export/{collections-in-exported-file => wasm/jsPrimitives}/tsconfig.json (100%) rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.d.ts => js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/index.d.mts (100%) create mode 100644 js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives.kt rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.kt => js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives__main.ts (54%) rename js/js.translator/testData/typescript-export/{collections => wasm/nullableJsPrimitives}/tsconfig.json (100%) rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.d.ts => js/js.translator/testData/typescript-export/wasm/nullablePrimitives/index.d.mts (100%) create mode 100644 js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives.kt rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.kt => js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives__main.ts (56%) rename js/js.translator/testData/typescript-export/{constructors-in-exported-file => wasm/nullablePrimitives}/tsconfig.json (100%) rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.d.ts => js/js.translator/testData/typescript-export/wasm/nullableUnsigned/index.d.mts (100%) create mode 100644 js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged.kt rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.kt => js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged__main.ts (64%) rename js/js.translator/testData/typescript-export/{constructors => wasm/nullableUnsigned}/tsconfig.json (100%) rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.d.ts => js/js.translator/testData/typescript-export/wasm/primitives/index.d.mts (100%) create mode 100644 js/js.translator/testData/typescript-export/wasm/primitives/primitives.kt rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.kt => js/js.translator/testData/typescript-export/wasm/primitives/primitives__main.ts (65%) rename js/js.translator/testData/typescript-export/{data-classes-in-exported-file => wasm/primitives}/tsconfig.json (100%) rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.d.ts => js/js.translator/testData/typescript-export/wasm/unsigned/index.d.mts (100%) rename js/js.translator/testData/typescript-export/{data-classes => wasm/unsigned}/tsconfig.json (100%) create mode 100644 js/js.translator/testData/typescript-export/wasm/unsigned/unsinged.kt rename compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.kt => js/js.translator/testData/typescript-export/wasm/unsigned/unsinged__main.ts (66%) create mode 100644 repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/utils.kt create mode 100644 wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmTypeScriptExportTestGenerated.java create mode 100644 wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmTypeScriptExportTestGenerated.java diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.kt b/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.kt deleted file mode 100644 index 0f96660171a..00000000000 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.kt +++ /dev/null @@ -1,39 +0,0 @@ -// CHECK_TYPESCRIPT_DECLARATIONS -// TARGET_BACKEND: WASM -// MODULE: main - -// FILE: generics.kt -@JsExport -fun simple(x: T): T = x - -@JsExport -fun second(a: A, b: B): B = b - -@JsExport -fun simpleWithConstraint(x: T): T = x - -external interface Foo : JsAny { - val foo: T -} - -external interface Bar : JsAny { - val bar: JsString -} - -external object Baz : JsAny { - val baz: JsBoolean -} - -fun getBaz(x: Foo): JsAny = js("({ baz: x.foo > 0n })") - -@JsExport -fun complexConstraint(x: A): B where A: Foo, A: Bar, B: Baz = getBaz(x).unsafeCast() - -// FILE: entry.mjs - -import { simple, second, simpleWithConstraint, complexConstraint } from "./index.mjs"; - -if (simple("OK") != "OK") throw new Error("Unexpected result from `simple` function") -if (second(1, "OK") != "OK") throw new Error("Unexpected result from `second` function") -if (simpleWithConstraint(42) != 42) throw new Error("Unexpected result from `simpleConstraint` function") -if (JSON.stringify(complexConstraint({ foo: 1n, bar: "bar" })) != "{\"baz\":true}") throw new Error("Unexpected result from `complexConstraint` function") diff --git a/js/js.tests/build.gradle.kts b/js/js.tests/build.gradle.kts index 6b8fd435b26..b423b205073 100644 --- a/js/js.tests/build.gradle.kts +++ b/js/js.tests/build.gradle.kts @@ -117,6 +117,7 @@ abstract class MochaTestTask : NpmTask(), VerificationTask val testDataDir = project(":js:js.translator").projectDir.resolve("testData") val typescriptTestsDir = testDataDir.resolve("typescript-export") +val jsTestsDir = typescriptTestsDir.resolve("js") val installTsDependencies by task { val packageLockFile = testDataDir.resolve("package-lock.json") @@ -129,30 +130,12 @@ val installTsDependencies by task { args.set(listOf("install")) } -fun parallel(tasksToRun: List>, beforeAll: TaskProvider<*>? = null, afterAll: TaskProvider<*>? = null): RegisteringDomainObjectDelegateProviderWithAction { - return tasks.registering { - tasksToRun.forEach { dependsOn(it) } - - if (afterAll != null) { - finalizedBy(afterAll) - } - }.apply { - if (beforeAll != null) { - tasksToRun.forEach { - it.configure { - dependsOn(beforeAll) - } - } - } - } -} - val exportFileDirPostfix = "-in-exported-file" fun generateJsExportOnFileTestFor(dir: String): TaskProvider = tasks.register("generate-js-export-on-file-for-$dir") { val dirPostfix = exportFileDirPostfix - val inputDir = fileTree(typescriptTestsDir.resolve(dir)) - val outputDir = typescriptTestsDir.resolve("$dir$dirPostfix") + val inputDir = fileTree(jsTestsDir.resolve(dir)) + val outputDir = jsTestsDir.resolve("$dir$dirPostfix") inputs.files(inputDir.matching { include("**/*.kt") @@ -191,7 +174,7 @@ fun generateJsExportOnFileTestFor(dir: String): TaskProvider = tasks.regis } fun generateTypeScriptTestFor(dir: String): TaskProvider = tasks.register("generate-ts-for-$dir") { - val baseDir = typescriptTestsDir.resolve(dir) + val baseDir = jsTestsDir.resolve(dir) val mainTsFile = fileTree(baseDir).files.find { it.name.endsWith("__main.ts") } ?: return@register val mainJsFile = baseDir.resolve("${mainTsFile.nameWithoutExtension}.js") @@ -201,12 +184,12 @@ fun generateTypeScriptTestFor(dir: String): TaskProvider = tasks.regist outputs.file(mainJsFile) outputs.upToDateWhen { mainJsFile.exists() } - args.set(listOf("run", "generateTypeScriptTests", "--", "./typescript-export/$dir/tsconfig.json")) + args.set(listOf("run", "generateTypeScriptTests", "--", "./typescript-export/js/$dir/tsconfig.json")) } val generateTypeScriptTests by parallel( beforeAll = installTsDependencies, - tasksToRun = typescriptTestsDir.listFiles { it: File -> + tasksToRun = jsTestsDir.listFiles { it: File -> it.isDirectory && !it.path.endsWith("module-systems") && !it.path.endsWith("module-systems-in-exported-file") @@ -215,7 +198,7 @@ val generateTypeScriptTests by parallel( ) val generateTypeScriptJsExportOnFileTests by parallel( - typescriptTestsDir + jsTestsDir .listFiles { it: File -> it.isDirectory && !it.path.endsWith("selective-export") && diff --git a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt index 3b0b6f4a3aa..ac0b05414f2 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt @@ -140,11 +140,11 @@ fun main(args: Array) { } testClass { - model("typescript-export/", pattern = "^([^_](.+))\\.kt$") + model("typescript-export/js/", pattern = "^([^_](.+))\\.kt$") } testClass { - model("typescript-export/", pattern = "^([^_](.+))\\.kt$") + model("typescript-export/js/", pattern = "^([^_](.+))\\.kt$") } testClass { @@ -164,11 +164,11 @@ fun main(args: Array) { } testClass { - model("typescript-export/", pattern = "^([^_](.+))\\.kt$") + model("typescript-export/js/", pattern = "^([^_](.+))\\.kt$") } testClass { - model("typescript-export/", pattern = "^([^_](.+))\\.kt$") + model("typescript-export/js/", pattern = "^([^_](.+))\\.kt$") } testClass { diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsIrTest.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsIrTest.kt index a1afb2554ae..3f8ded17d59 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsIrTest.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsIrTest.kt @@ -101,7 +101,7 @@ open class AbstractIrJsCodegenInlineTest : AbstractJsIrTest( ) open class AbstractIrJsTypeScriptExportTest : AbstractJsIrTest( - pathToTestDir = "${JsEnvironmentConfigurator.TEST_DATA_DIR_PATH}/typescript-export/", + pathToTestDir = "${JsEnvironmentConfigurator.TEST_DATA_DIR_PATH}/typescript-export/js/", testGroupOutputDirPrefix = "typescript-export/ir/" ) { override fun configure(builder: TestConfigurationBuilder) { @@ -111,7 +111,7 @@ open class AbstractIrJsTypeScriptExportTest : AbstractJsIrTest( } open class AbstractIrJsES6TypeScriptExportTest : AbstractJsIrES6Test( - pathToTestDir = "${JsEnvironmentConfigurator.TEST_DATA_DIR_PATH}/typescript-export/", + pathToTestDir = "${JsEnvironmentConfigurator.TEST_DATA_DIR_PATH}/typescript-export/js/", testGroupOutputDirPrefix = "typescript-export/ir-es6/" ) { override fun configure(builder: TestConfigurationBuilder) { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenWasmJsInteropTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenWasmJsInteropTestGenerated.java index 3a92f87574f..09a38c96bfd 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenWasmJsInteropTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenWasmJsInteropTestGenerated.java @@ -9,7 +9,6 @@ import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import java.io.File; @@ -108,14 +107,4 @@ public class FirJsCodegenWasmJsInteropTestGenerated extends AbstractFirJsCodegen public void testVararg() { runTest("compiler/testData/codegen/boxWasmJsInterop/vararg.kt"); } - - @Nested - @TestMetadata("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations") - @TestDataPath("$PROJECT_ROOT") - public class TypeScriptDeclarations { - @Test - public void testAllFilesPresentInTypeScriptDeclarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenWasmJsInteropTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenWasmJsInteropTestGenerated.java index 2f626f81f14..d6336a2de31 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenWasmJsInteropTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenWasmJsInteropTestGenerated.java @@ -9,7 +9,6 @@ import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import java.io.File; @@ -108,14 +107,4 @@ public class FirJsES6CodegenWasmJsInteropTestGenerated extends AbstractFirJsES6C public void testVararg() { runTest("compiler/testData/codegen/boxWasmJsInterop/vararg.kt"); } - - @Nested - @TestMetadata("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations") - @TestDataPath("$PROJECT_ROOT") - public class TypeScriptDeclarations { - @Test - public void testAllFilesPresentInTypeScriptDeclarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6TypeScriptExportTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6TypeScriptExportTestGenerated.java index e21b18f6264..f42561081f8 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6TypeScriptExportTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6TypeScriptExportTestGenerated.java @@ -17,863 +17,863 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("js/js.translator/testData/typescript-export") +@TestMetadata("js/js.translator/testData/typescript-export/js") @TestDataPath("$PROJECT_ROOT") public class FirJsES6TypeScriptExportTestGenerated extends AbstractFirJsES6TypeScriptExportTest { @Test - public void testAllFilesPresentInTypescript_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + public void testAllFilesPresentInJs() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/abstract-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/abstract-classes") @TestDataPath("$PROJECT_ROOT") public class Abstract_classes { @Test @TestMetadata("abstract-classes.kt") public void testAbstract_classes() { - runTest("js/js.translator/testData/typescript-export/abstract-classes/abstract-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes.kt"); } @Test public void testAllFilesPresentInAbstract_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/abstract-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/abstract-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Abstract_classes_in_exported_file { @Test @TestMetadata("abstract-classes.kt") public void testAbstract_classes() { - runTest("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes.kt"); } @Test public void testAllFilesPresentInAbstract_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/collections") + @TestMetadata("js/js.translator/testData/typescript-export/js/collections") @TestDataPath("$PROJECT_ROOT") public class Collections { @Test public void testAllFilesPresentInCollections() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("collections.kt") public void testCollections() { - runTest("js/js.translator/testData/typescript-export/collections/collections.kt"); + runTest("js/js.translator/testData/typescript-export/js/collections/collections.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/collections-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/collections-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Collections_in_exported_file { @Test public void testAllFilesPresentInCollections_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/collections-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/collections-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("collections.kt") public void testCollections() { - runTest("js/js.translator/testData/typescript-export/collections-in-exported-file/collections.kt"); + runTest("js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/constructors") + @TestMetadata("js/js.translator/testData/typescript-export/js/constructors") @TestDataPath("$PROJECT_ROOT") public class Constructors { @Test public void testAllFilesPresentInConstructors() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("constructors.kt") public void testConstructors() { - runTest("js/js.translator/testData/typescript-export/constructors/constructors.kt"); + runTest("js/js.translator/testData/typescript-export/js/constructors/constructors.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/constructors-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/constructors-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Constructors_in_exported_file { @Test public void testAllFilesPresentInConstructors_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/constructors-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("constructors.kt") public void testConstructors() { - runTest("js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors.kt"); + runTest("js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/data-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/data-classes") @TestDataPath("$PROJECT_ROOT") public class Data_classes { @Test public void testAllFilesPresentInData_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/data-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/data-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("data-classes.kt") public void testData_classes() { - runTest("js/js.translator/testData/typescript-export/data-classes/data-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/data-classes/data-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/data-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Data_classes_in_exported_file { @Test public void testAllFilesPresentInData_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/data-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("data-classes.kt") public void testData_classes() { - runTest("js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/deprecated") + @TestMetadata("js/js.translator/testData/typescript-export/js/deprecated") @TestDataPath("$PROJECT_ROOT") public class Deprecated { @Test public void testAllFilesPresentInDeprecated() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/deprecated"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/deprecated"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("deprecated.kt") public void testDeprecated() { - runTest("js/js.translator/testData/typescript-export/deprecated/deprecated.kt"); + runTest("js/js.translator/testData/typescript-export/js/deprecated/deprecated.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/deprecated-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Deprecated_in_exported_file { @Test public void testAllFilesPresentInDeprecated_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/deprecated-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("deprecated.kt") public void testDeprecated() { - runTest("js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated.kt"); + runTest("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/enum-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/enum-classes") @TestDataPath("$PROJECT_ROOT") public class Enum_classes { @Test public void testAllFilesPresentInEnum_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/enum-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/enum-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("enum-classes.kt") public void testEnum_classes() { - runTest("js/js.translator/testData/typescript-export/enum-classes/enum-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/enum-classes/enum-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/enum-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Enum_classes_in_exported_file { @Test public void testAllFilesPresentInEnum_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/enum-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("enum-classes.kt") public void testEnum_classes() { - runTest("js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/escaped-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/escaped-declarations") @TestDataPath("$PROJECT_ROOT") public class Escaped_declarations { @Test public void testAllFilesPresentInEscaped_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/escaped-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/escaped-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("escaped-declarations.kt") public void testEscaped_declarations() { - runTest("js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Escaped_declarations_in_exported_file { @Test public void testAllFilesPresentInEscaped_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("escaped-declarations.kt") public void testEscaped_declarations() { - runTest("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/excluded-exported-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/excluded-exported-declarations") @TestDataPath("$PROJECT_ROOT") public class Excluded_exported_declarations { @Test public void testAllFilesPresentInExcluded_exported_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/excluded-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/excluded-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("excluded-exported-declarations.kt") public void testExcluded_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Excluded_exported_declarations_in_exported_file { @Test public void testAllFilesPresentInExcluded_exported_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("excluded-exported-declarations.kt") public void testExcluded_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/functions") + @TestMetadata("js/js.translator/testData/typescript-export/js/functions") @TestDataPath("$PROJECT_ROOT") public class Functions { @Test public void testAllFilesPresentInFunctions() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/functions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/functions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("functions.kt") public void testFunctions() { - runTest("js/js.translator/testData/typescript-export/functions/functions.kt"); + runTest("js/js.translator/testData/typescript-export/js/functions/functions.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/functions-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/functions-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Functions_in_exported_file { @Test public void testAllFilesPresentInFunctions_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/functions-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/functions-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("functions.kt") public void testFunctions() { - runTest("js/js.translator/testData/typescript-export/functions-in-exported-file/functions.kt"); + runTest("js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/implicit-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/implicit-export") @TestDataPath("$PROJECT_ROOT") public class Implicit_export { @Test public void testAllFilesPresentInImplicit_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("implicit-export.kt") public void testImplicit_export() { - runTest("js/js.translator/testData/typescript-export/implicit-export/implicit-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/implicit-export/implicit-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inheritance") + @TestMetadata("js/js.translator/testData/typescript-export/js/inheritance") @TestDataPath("$PROJECT_ROOT") public class Inheritance { @Test public void testAllFilesPresentInInheritance() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("inheritance.kt") public void testInheritance() { - runTest("js/js.translator/testData/typescript-export/inheritance/inheritance.kt"); + runTest("js/js.translator/testData/typescript-export/js/inheritance/inheritance.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inner-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/inner-classes") @TestDataPath("$PROJECT_ROOT") public class Inner_classes { @Test public void testAllFilesPresentInInner_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inner-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inner-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("inner-class.kt") public void testInner_class() { - runTest("js/js.translator/testData/typescript-export/inner-classes/inner-class.kt"); + runTest("js/js.translator/testData/typescript-export/js/inner-classes/inner-class.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inner-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Inner_classes_in_exported_file { @Test public void testAllFilesPresentInInner_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inner-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("inner-class.kt") public void testInner_class() { - runTest("js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class.kt"); + runTest("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/interfaces") + @TestMetadata("js/js.translator/testData/typescript-export/js/interfaces") @TestDataPath("$PROJECT_ROOT") public class Interfaces { @Test public void testAllFilesPresentInInterfaces() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("interfaces.kt") public void testInterfaces() { - runTest("js/js.translator/testData/typescript-export/interfaces/interfaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/interfaces/interfaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/interfaces-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Interfaces_in_exported_file { @Test public void testAllFilesPresentInInterfaces_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/interfaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("interfaces.kt") public void testInterfaces() { - runTest("js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/js-name") + @TestMetadata("js/js.translator/testData/typescript-export/js/js-name") @TestDataPath("$PROJECT_ROOT") public class Js_name { @Test public void testAllFilesPresentInJs_name() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js-name"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/js-name"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("js-name.kt") public void testJs_name() { - runTest("js/js.translator/testData/typescript-export/js-name/js-name.kt"); + runTest("js/js.translator/testData/typescript-export/js/js-name/js-name.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/js-name-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/js-name-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Js_name_in_exported_file { @Test public void testAllFilesPresentInJs_name_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js-name-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/js-name-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("js-name.kt") public void testJs_name() { - runTest("js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name.kt"); + runTest("js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/member-properties") + @TestMetadata("js/js.translator/testData/typescript-export/js/member-properties") @TestDataPath("$PROJECT_ROOT") public class Member_properties { @Test public void testAllFilesPresentInMember_properties() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/member-properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/member-properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("member-properties.kt") public void testMember_properties() { - runTest("js/js.translator/testData/typescript-export/member-properties/member-properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/member-properties/member-properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/member-properties-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Member_properties_in_exported_file { @Test public void testAllFilesPresentInMember_properties_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/member-properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("member-properties.kt") public void testMember_properties() { - runTest("js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/methods") + @TestMetadata("js/js.translator/testData/typescript-export/js/methods") @TestDataPath("$PROJECT_ROOT") public class Methods { @Test public void testAllFilesPresentInMethods() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/methods"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/methods"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("methods.kt") public void testMethods() { - runTest("js/js.translator/testData/typescript-export/methods/methods.kt"); + runTest("js/js.translator/testData/typescript-export/js/methods/methods.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/methods-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/methods-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Methods_in_exported_file { @Test public void testAllFilesPresentInMethods_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/methods-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/methods-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("methods.kt") public void testMethods() { - runTest("js/js.translator/testData/typescript-export/methods-in-exported-file/methods.kt"); + runTest("js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/module-systems") + @TestMetadata("js/js.translator/testData/typescript-export/js/module-systems") @TestDataPath("$PROJECT_ROOT") public class Module_systems { @Test public void testAllFilesPresentInModule_systems() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/module-systems"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/module-systems"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("commonjs.kt") public void testCommonjs() { - runTest("js/js.translator/testData/typescript-export/module-systems/commonjs.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/commonjs.kt"); } @Test @TestMetadata("esm.kt") public void testEsm() { - runTest("js/js.translator/testData/typescript-export/module-systems/esm.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/esm.kt"); } @Test @TestMetadata("plain.kt") public void testPlain() { - runTest("js/js.translator/testData/typescript-export/module-systems/plain.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/plain.kt"); } @Test @TestMetadata("umd.kt") public void testUmd() { - runTest("js/js.translator/testData/typescript-export/module-systems/umd.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/umd.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/module-systems-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Module_systems_in_exported_file { @Test public void testAllFilesPresentInModule_systems_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/module-systems-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("commonjs.kt") public void testCommonjs() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/commonjs.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/commonjs.kt"); } @Test @TestMetadata("esm.kt") public void testEsm() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/esm.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/esm.kt"); } @Test @TestMetadata("plain.kt") public void testPlain() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/plain.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/plain.kt"); } @Test @TestMetadata("umd.kt") public void testUmd() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/umd.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/umd.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/namespaces") + @TestMetadata("js/js.translator/testData/typescript-export/js/namespaces") @TestDataPath("$PROJECT_ROOT") public class Namespaces { @Test public void testAllFilesPresentInNamespaces() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("namespaces.kt") public void testNamespaces() { - runTest("js/js.translator/testData/typescript-export/namespaces/namespaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/namespaces/namespaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/namespaces-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Namespaces_in_exported_file { @Test public void testAllFilesPresentInNamespaces_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("namespaces.kt") public void testNamespaces() { - runTest("js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/not-exported-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/not-exported-declarations") @TestDataPath("$PROJECT_ROOT") public class Not_exported_declarations { @Test public void testAllFilesPresentInNot_exported_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/not-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/not-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("not-exported-declarations.kt") public void testNot_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Not_exported_declarations_in_exported_file { @Test public void testAllFilesPresentInNot_exported_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("not-exported-declarations.kt") public void testNot_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/objects") + @TestMetadata("js/js.translator/testData/typescript-export/js/objects") @TestDataPath("$PROJECT_ROOT") public class Objects { @Test public void testAllFilesPresentInObjects() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/objects"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/objects"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("objects.kt") public void testObjects() { - runTest("js/js.translator/testData/typescript-export/objects/objects.kt"); + runTest("js/js.translator/testData/typescript-export/js/objects/objects.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/objects-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/objects-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Objects_in_exported_file { @Test public void testAllFilesPresentInObjects_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/objects-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/objects-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("objects.kt") public void testObjects() { - runTest("js/js.translator/testData/typescript-export/objects-in-exported-file/objects.kt"); + runTest("js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/primitives") + @TestMetadata("js/js.translator/testData/typescript-export/js/primitives") @TestDataPath("$PROJECT_ROOT") public class Primitives { @Test public void testAllFilesPresentInPrimitives() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("primitives.kt") public void testPrimitives() { - runTest("js/js.translator/testData/typescript-export/primitives/primitives.kt"); + runTest("js/js.translator/testData/typescript-export/js/primitives/primitives.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/primitives-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/primitives-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Primitives_in_exported_file { @Test public void testAllFilesPresentInPrimitives_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/primitives-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("primitives.kt") public void testPrimitives() { - runTest("js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives.kt"); + runTest("js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/private-primary-constructor") + @TestMetadata("js/js.translator/testData/typescript-export/js/private-primary-constructor") @TestDataPath("$PROJECT_ROOT") public class Private_primary_constructor { @Test public void testAllFilesPresentInPrivate_primary_constructor() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("private-primary-constructor.kt") public void testPrivate_primary_constructor() { - runTest("js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.kt"); + runTest("js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/properties") + @TestMetadata("js/js.translator/testData/typescript-export/js/properties") @TestDataPath("$PROJECT_ROOT") public class Properties { @Test public void testAllFilesPresentInProperties() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("properties.kt") public void testProperties() { - runTest("js/js.translator/testData/typescript-export/properties/properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/properties/properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/properties-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/properties-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Properties_in_exported_file { @Test public void testAllFilesPresentInProperties_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("properties.kt") public void testProperties() { - runTest("js/js.translator/testData/typescript-export/properties-in-exported-file/properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/regular-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/regular-classes") @TestDataPath("$PROJECT_ROOT") public class Regular_classes { @Test public void testAllFilesPresentInRegular_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/regular-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/regular-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("regular-classes.kt") public void testRegular_classes() { - runTest("js/js.translator/testData/typescript-export/regular-classes/regular-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/regular-classes/regular-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/regular-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Regular_classes_in_exported_file { @Test public void testAllFilesPresentInRegular_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/regular-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("regular-classes.kt") public void testRegular_classes() { - runTest("js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/sealed-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/sealed-classes") @TestDataPath("$PROJECT_ROOT") public class Sealed_classes { @Test public void testAllFilesPresentInSealed_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/sealed-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/sealed-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("sealed-classes.kt") public void testSealed_classes() { - runTest("js/js.translator/testData/typescript-export/sealed-classes/sealed-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Sealed_classes_in_exported_file { @Test public void testAllFilesPresentInSealed_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("sealed-classes.kt") public void testSealed_classes() { - runTest("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/selective-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/selective-export") @TestDataPath("$PROJECT_ROOT") public class Selective_export { @Test public void testAllFilesPresentInSelective_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/selective-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/selective-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("selective-export.kt") public void testSelective_export() { - runTest("js/js.translator/testData/typescript-export/selective-export/selective-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/selective-export/selective-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/strict-implicit-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/strict-implicit-export") @TestDataPath("$PROJECT_ROOT") public class Strict_implicit_export { @Test public void testAllFilesPresentInStrict_implicit_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/strict-implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/strict-implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("strict-implicit-export.kt") public void testStrict_implicit_export() { - runTest("js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/visibility") + @TestMetadata("js/js.translator/testData/typescript-export/js/visibility") @TestDataPath("$PROJECT_ROOT") public class Visibility { @Test public void testAllFilesPresentInVisibility() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("visibility.kt") public void testVisibility() { - runTest("js/js.translator/testData/typescript-export/visibility/visibility.kt"); + runTest("js/js.translator/testData/typescript-export/js/visibility/visibility.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/visibility-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/visibility-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Visibility_in_exported_file { @Test public void testAllFilesPresentInVisibility_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/visibility-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("visibility.kt") public void testVisibility() { - runTest("js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility.kt"); + runTest("js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility.kt"); } } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsTypeScriptExportTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsTypeScriptExportTestGenerated.java index 2666d074a34..7d355a2d5db 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsTypeScriptExportTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsTypeScriptExportTestGenerated.java @@ -17,863 +17,863 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("js/js.translator/testData/typescript-export") +@TestMetadata("js/js.translator/testData/typescript-export/js") @TestDataPath("$PROJECT_ROOT") public class FirJsTypeScriptExportTestGenerated extends AbstractFirJsTypeScriptExportTest { @Test - public void testAllFilesPresentInTypescript_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + public void testAllFilesPresentInJs() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/abstract-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/abstract-classes") @TestDataPath("$PROJECT_ROOT") public class Abstract_classes { @Test @TestMetadata("abstract-classes.kt") public void testAbstract_classes() { - runTest("js/js.translator/testData/typescript-export/abstract-classes/abstract-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes.kt"); } @Test public void testAllFilesPresentInAbstract_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/abstract-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/abstract-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Abstract_classes_in_exported_file { @Test @TestMetadata("abstract-classes.kt") public void testAbstract_classes() { - runTest("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes.kt"); } @Test public void testAllFilesPresentInAbstract_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/collections") + @TestMetadata("js/js.translator/testData/typescript-export/js/collections") @TestDataPath("$PROJECT_ROOT") public class Collections { @Test public void testAllFilesPresentInCollections() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("collections.kt") public void testCollections() { - runTest("js/js.translator/testData/typescript-export/collections/collections.kt"); + runTest("js/js.translator/testData/typescript-export/js/collections/collections.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/collections-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/collections-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Collections_in_exported_file { @Test public void testAllFilesPresentInCollections_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/collections-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/collections-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("collections.kt") public void testCollections() { - runTest("js/js.translator/testData/typescript-export/collections-in-exported-file/collections.kt"); + runTest("js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/constructors") + @TestMetadata("js/js.translator/testData/typescript-export/js/constructors") @TestDataPath("$PROJECT_ROOT") public class Constructors { @Test public void testAllFilesPresentInConstructors() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("constructors.kt") public void testConstructors() { - runTest("js/js.translator/testData/typescript-export/constructors/constructors.kt"); + runTest("js/js.translator/testData/typescript-export/js/constructors/constructors.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/constructors-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/constructors-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Constructors_in_exported_file { @Test public void testAllFilesPresentInConstructors_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/constructors-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("constructors.kt") public void testConstructors() { - runTest("js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors.kt"); + runTest("js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/data-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/data-classes") @TestDataPath("$PROJECT_ROOT") public class Data_classes { @Test public void testAllFilesPresentInData_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/data-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/data-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("data-classes.kt") public void testData_classes() { - runTest("js/js.translator/testData/typescript-export/data-classes/data-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/data-classes/data-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/data-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Data_classes_in_exported_file { @Test public void testAllFilesPresentInData_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/data-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("data-classes.kt") public void testData_classes() { - runTest("js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/deprecated") + @TestMetadata("js/js.translator/testData/typescript-export/js/deprecated") @TestDataPath("$PROJECT_ROOT") public class Deprecated { @Test public void testAllFilesPresentInDeprecated() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/deprecated"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/deprecated"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("deprecated.kt") public void testDeprecated() { - runTest("js/js.translator/testData/typescript-export/deprecated/deprecated.kt"); + runTest("js/js.translator/testData/typescript-export/js/deprecated/deprecated.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/deprecated-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Deprecated_in_exported_file { @Test public void testAllFilesPresentInDeprecated_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/deprecated-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("deprecated.kt") public void testDeprecated() { - runTest("js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated.kt"); + runTest("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/enum-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/enum-classes") @TestDataPath("$PROJECT_ROOT") public class Enum_classes { @Test public void testAllFilesPresentInEnum_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/enum-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/enum-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("enum-classes.kt") public void testEnum_classes() { - runTest("js/js.translator/testData/typescript-export/enum-classes/enum-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/enum-classes/enum-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/enum-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Enum_classes_in_exported_file { @Test public void testAllFilesPresentInEnum_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/enum-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("enum-classes.kt") public void testEnum_classes() { - runTest("js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/escaped-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/escaped-declarations") @TestDataPath("$PROJECT_ROOT") public class Escaped_declarations { @Test public void testAllFilesPresentInEscaped_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/escaped-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/escaped-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("escaped-declarations.kt") public void testEscaped_declarations() { - runTest("js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Escaped_declarations_in_exported_file { @Test public void testAllFilesPresentInEscaped_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("escaped-declarations.kt") public void testEscaped_declarations() { - runTest("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/excluded-exported-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/excluded-exported-declarations") @TestDataPath("$PROJECT_ROOT") public class Excluded_exported_declarations { @Test public void testAllFilesPresentInExcluded_exported_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/excluded-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/excluded-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("excluded-exported-declarations.kt") public void testExcluded_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Excluded_exported_declarations_in_exported_file { @Test public void testAllFilesPresentInExcluded_exported_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("excluded-exported-declarations.kt") public void testExcluded_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/functions") + @TestMetadata("js/js.translator/testData/typescript-export/js/functions") @TestDataPath("$PROJECT_ROOT") public class Functions { @Test public void testAllFilesPresentInFunctions() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/functions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/functions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("functions.kt") public void testFunctions() { - runTest("js/js.translator/testData/typescript-export/functions/functions.kt"); + runTest("js/js.translator/testData/typescript-export/js/functions/functions.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/functions-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/functions-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Functions_in_exported_file { @Test public void testAllFilesPresentInFunctions_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/functions-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/functions-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("functions.kt") public void testFunctions() { - runTest("js/js.translator/testData/typescript-export/functions-in-exported-file/functions.kt"); + runTest("js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/implicit-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/implicit-export") @TestDataPath("$PROJECT_ROOT") public class Implicit_export { @Test public void testAllFilesPresentInImplicit_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("implicit-export.kt") public void testImplicit_export() { - runTest("js/js.translator/testData/typescript-export/implicit-export/implicit-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/implicit-export/implicit-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inheritance") + @TestMetadata("js/js.translator/testData/typescript-export/js/inheritance") @TestDataPath("$PROJECT_ROOT") public class Inheritance { @Test public void testAllFilesPresentInInheritance() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("inheritance.kt") public void testInheritance() { - runTest("js/js.translator/testData/typescript-export/inheritance/inheritance.kt"); + runTest("js/js.translator/testData/typescript-export/js/inheritance/inheritance.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inner-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/inner-classes") @TestDataPath("$PROJECT_ROOT") public class Inner_classes { @Test public void testAllFilesPresentInInner_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inner-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inner-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("inner-class.kt") public void testInner_class() { - runTest("js/js.translator/testData/typescript-export/inner-classes/inner-class.kt"); + runTest("js/js.translator/testData/typescript-export/js/inner-classes/inner-class.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inner-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Inner_classes_in_exported_file { @Test public void testAllFilesPresentInInner_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inner-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("inner-class.kt") public void testInner_class() { - runTest("js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class.kt"); + runTest("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/interfaces") + @TestMetadata("js/js.translator/testData/typescript-export/js/interfaces") @TestDataPath("$PROJECT_ROOT") public class Interfaces { @Test public void testAllFilesPresentInInterfaces() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("interfaces.kt") public void testInterfaces() { - runTest("js/js.translator/testData/typescript-export/interfaces/interfaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/interfaces/interfaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/interfaces-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Interfaces_in_exported_file { @Test public void testAllFilesPresentInInterfaces_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/interfaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("interfaces.kt") public void testInterfaces() { - runTest("js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/js-name") + @TestMetadata("js/js.translator/testData/typescript-export/js/js-name") @TestDataPath("$PROJECT_ROOT") public class Js_name { @Test public void testAllFilesPresentInJs_name() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js-name"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/js-name"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("js-name.kt") public void testJs_name() { - runTest("js/js.translator/testData/typescript-export/js-name/js-name.kt"); + runTest("js/js.translator/testData/typescript-export/js/js-name/js-name.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/js-name-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/js-name-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Js_name_in_exported_file { @Test public void testAllFilesPresentInJs_name_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js-name-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/js-name-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("js-name.kt") public void testJs_name() { - runTest("js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name.kt"); + runTest("js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/member-properties") + @TestMetadata("js/js.translator/testData/typescript-export/js/member-properties") @TestDataPath("$PROJECT_ROOT") public class Member_properties { @Test public void testAllFilesPresentInMember_properties() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/member-properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/member-properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("member-properties.kt") public void testMember_properties() { - runTest("js/js.translator/testData/typescript-export/member-properties/member-properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/member-properties/member-properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/member-properties-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Member_properties_in_exported_file { @Test public void testAllFilesPresentInMember_properties_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/member-properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("member-properties.kt") public void testMember_properties() { - runTest("js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/methods") + @TestMetadata("js/js.translator/testData/typescript-export/js/methods") @TestDataPath("$PROJECT_ROOT") public class Methods { @Test public void testAllFilesPresentInMethods() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/methods"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/methods"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("methods.kt") public void testMethods() { - runTest("js/js.translator/testData/typescript-export/methods/methods.kt"); + runTest("js/js.translator/testData/typescript-export/js/methods/methods.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/methods-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/methods-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Methods_in_exported_file { @Test public void testAllFilesPresentInMethods_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/methods-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/methods-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("methods.kt") public void testMethods() { - runTest("js/js.translator/testData/typescript-export/methods-in-exported-file/methods.kt"); + runTest("js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/module-systems") + @TestMetadata("js/js.translator/testData/typescript-export/js/module-systems") @TestDataPath("$PROJECT_ROOT") public class Module_systems { @Test public void testAllFilesPresentInModule_systems() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/module-systems"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/module-systems"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("commonjs.kt") public void testCommonjs() { - runTest("js/js.translator/testData/typescript-export/module-systems/commonjs.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/commonjs.kt"); } @Test @TestMetadata("esm.kt") public void testEsm() { - runTest("js/js.translator/testData/typescript-export/module-systems/esm.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/esm.kt"); } @Test @TestMetadata("plain.kt") public void testPlain() { - runTest("js/js.translator/testData/typescript-export/module-systems/plain.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/plain.kt"); } @Test @TestMetadata("umd.kt") public void testUmd() { - runTest("js/js.translator/testData/typescript-export/module-systems/umd.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/umd.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/module-systems-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Module_systems_in_exported_file { @Test public void testAllFilesPresentInModule_systems_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/module-systems-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("commonjs.kt") public void testCommonjs() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/commonjs.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/commonjs.kt"); } @Test @TestMetadata("esm.kt") public void testEsm() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/esm.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/esm.kt"); } @Test @TestMetadata("plain.kt") public void testPlain() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/plain.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/plain.kt"); } @Test @TestMetadata("umd.kt") public void testUmd() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/umd.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/umd.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/namespaces") + @TestMetadata("js/js.translator/testData/typescript-export/js/namespaces") @TestDataPath("$PROJECT_ROOT") public class Namespaces { @Test public void testAllFilesPresentInNamespaces() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("namespaces.kt") public void testNamespaces() { - runTest("js/js.translator/testData/typescript-export/namespaces/namespaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/namespaces/namespaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/namespaces-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Namespaces_in_exported_file { @Test public void testAllFilesPresentInNamespaces_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("namespaces.kt") public void testNamespaces() { - runTest("js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/not-exported-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/not-exported-declarations") @TestDataPath("$PROJECT_ROOT") public class Not_exported_declarations { @Test public void testAllFilesPresentInNot_exported_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/not-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/not-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("not-exported-declarations.kt") public void testNot_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Not_exported_declarations_in_exported_file { @Test public void testAllFilesPresentInNot_exported_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("not-exported-declarations.kt") public void testNot_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/objects") + @TestMetadata("js/js.translator/testData/typescript-export/js/objects") @TestDataPath("$PROJECT_ROOT") public class Objects { @Test public void testAllFilesPresentInObjects() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/objects"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/objects"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("objects.kt") public void testObjects() { - runTest("js/js.translator/testData/typescript-export/objects/objects.kt"); + runTest("js/js.translator/testData/typescript-export/js/objects/objects.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/objects-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/objects-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Objects_in_exported_file { @Test public void testAllFilesPresentInObjects_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/objects-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/objects-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("objects.kt") public void testObjects() { - runTest("js/js.translator/testData/typescript-export/objects-in-exported-file/objects.kt"); + runTest("js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/primitives") + @TestMetadata("js/js.translator/testData/typescript-export/js/primitives") @TestDataPath("$PROJECT_ROOT") public class Primitives { @Test public void testAllFilesPresentInPrimitives() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("primitives.kt") public void testPrimitives() { - runTest("js/js.translator/testData/typescript-export/primitives/primitives.kt"); + runTest("js/js.translator/testData/typescript-export/js/primitives/primitives.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/primitives-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/primitives-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Primitives_in_exported_file { @Test public void testAllFilesPresentInPrimitives_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/primitives-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("primitives.kt") public void testPrimitives() { - runTest("js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives.kt"); + runTest("js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/private-primary-constructor") + @TestMetadata("js/js.translator/testData/typescript-export/js/private-primary-constructor") @TestDataPath("$PROJECT_ROOT") public class Private_primary_constructor { @Test public void testAllFilesPresentInPrivate_primary_constructor() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("private-primary-constructor.kt") public void testPrivate_primary_constructor() { - runTest("js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.kt"); + runTest("js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/properties") + @TestMetadata("js/js.translator/testData/typescript-export/js/properties") @TestDataPath("$PROJECT_ROOT") public class Properties { @Test public void testAllFilesPresentInProperties() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("properties.kt") public void testProperties() { - runTest("js/js.translator/testData/typescript-export/properties/properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/properties/properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/properties-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/properties-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Properties_in_exported_file { @Test public void testAllFilesPresentInProperties_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("properties.kt") public void testProperties() { - runTest("js/js.translator/testData/typescript-export/properties-in-exported-file/properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/regular-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/regular-classes") @TestDataPath("$PROJECT_ROOT") public class Regular_classes { @Test public void testAllFilesPresentInRegular_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/regular-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/regular-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("regular-classes.kt") public void testRegular_classes() { - runTest("js/js.translator/testData/typescript-export/regular-classes/regular-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/regular-classes/regular-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/regular-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Regular_classes_in_exported_file { @Test public void testAllFilesPresentInRegular_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/regular-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("regular-classes.kt") public void testRegular_classes() { - runTest("js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/sealed-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/sealed-classes") @TestDataPath("$PROJECT_ROOT") public class Sealed_classes { @Test public void testAllFilesPresentInSealed_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/sealed-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/sealed-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("sealed-classes.kt") public void testSealed_classes() { - runTest("js/js.translator/testData/typescript-export/sealed-classes/sealed-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Sealed_classes_in_exported_file { @Test public void testAllFilesPresentInSealed_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("sealed-classes.kt") public void testSealed_classes() { - runTest("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/selective-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/selective-export") @TestDataPath("$PROJECT_ROOT") public class Selective_export { @Test public void testAllFilesPresentInSelective_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/selective-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/selective-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("selective-export.kt") public void testSelective_export() { - runTest("js/js.translator/testData/typescript-export/selective-export/selective-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/selective-export/selective-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/strict-implicit-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/strict-implicit-export") @TestDataPath("$PROJECT_ROOT") public class Strict_implicit_export { @Test public void testAllFilesPresentInStrict_implicit_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/strict-implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/strict-implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("strict-implicit-export.kt") public void testStrict_implicit_export() { - runTest("js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/visibility") + @TestMetadata("js/js.translator/testData/typescript-export/js/visibility") @TestDataPath("$PROJECT_ROOT") public class Visibility { @Test public void testAllFilesPresentInVisibility() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("visibility.kt") public void testVisibility() { - runTest("js/js.translator/testData/typescript-export/visibility/visibility.kt"); + runTest("js/js.translator/testData/typescript-export/js/visibility/visibility.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/visibility-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/visibility-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Visibility_in_exported_file { @Test public void testAllFilesPresentInVisibility_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/visibility-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("visibility.kt") public void testVisibility() { - runTest("js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility.kt"); + runTest("js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility.kt"); } } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrCodegenWasmJsInteropJsTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrCodegenWasmJsInteropJsTestGenerated.java index 3a8e16a268c..6962197a20c 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrCodegenWasmJsInteropJsTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrCodegenWasmJsInteropJsTestGenerated.java @@ -9,7 +9,6 @@ import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import java.io.File; @@ -108,14 +107,4 @@ public class IrCodegenWasmJsInteropJsTestGenerated extends AbstractIrCodegenWasm public void testVararg() { runTest("compiler/testData/codegen/boxWasmJsInterop/vararg.kt"); } - - @Nested - @TestMetadata("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations") - @TestDataPath("$PROJECT_ROOT") - public class TypeScriptDeclarations { - @Test - public void testAllFilesPresentInTypeScriptDeclarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6TypeScriptExportTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6TypeScriptExportTestGenerated.java index 882d04eec92..20fe0461d35 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6TypeScriptExportTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6TypeScriptExportTestGenerated.java @@ -17,863 +17,863 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("js/js.translator/testData/typescript-export") +@TestMetadata("js/js.translator/testData/typescript-export/js") @TestDataPath("$PROJECT_ROOT") public class IrJsES6TypeScriptExportTestGenerated extends AbstractIrJsES6TypeScriptExportTest { @Test - public void testAllFilesPresentInTypescript_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + public void testAllFilesPresentInJs() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/abstract-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/abstract-classes") @TestDataPath("$PROJECT_ROOT") public class Abstract_classes { @Test @TestMetadata("abstract-classes.kt") public void testAbstract_classes() { - runTest("js/js.translator/testData/typescript-export/abstract-classes/abstract-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes.kt"); } @Test public void testAllFilesPresentInAbstract_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/abstract-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/abstract-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Abstract_classes_in_exported_file { @Test @TestMetadata("abstract-classes.kt") public void testAbstract_classes() { - runTest("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes.kt"); } @Test public void testAllFilesPresentInAbstract_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/collections") + @TestMetadata("js/js.translator/testData/typescript-export/js/collections") @TestDataPath("$PROJECT_ROOT") public class Collections { @Test public void testAllFilesPresentInCollections() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("collections.kt") public void testCollections() { - runTest("js/js.translator/testData/typescript-export/collections/collections.kt"); + runTest("js/js.translator/testData/typescript-export/js/collections/collections.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/collections-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/collections-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Collections_in_exported_file { @Test public void testAllFilesPresentInCollections_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/collections-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/collections-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("collections.kt") public void testCollections() { - runTest("js/js.translator/testData/typescript-export/collections-in-exported-file/collections.kt"); + runTest("js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/constructors") + @TestMetadata("js/js.translator/testData/typescript-export/js/constructors") @TestDataPath("$PROJECT_ROOT") public class Constructors { @Test public void testAllFilesPresentInConstructors() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("constructors.kt") public void testConstructors() { - runTest("js/js.translator/testData/typescript-export/constructors/constructors.kt"); + runTest("js/js.translator/testData/typescript-export/js/constructors/constructors.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/constructors-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/constructors-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Constructors_in_exported_file { @Test public void testAllFilesPresentInConstructors_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/constructors-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("constructors.kt") public void testConstructors() { - runTest("js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors.kt"); + runTest("js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/data-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/data-classes") @TestDataPath("$PROJECT_ROOT") public class Data_classes { @Test public void testAllFilesPresentInData_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/data-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/data-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("data-classes.kt") public void testData_classes() { - runTest("js/js.translator/testData/typescript-export/data-classes/data-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/data-classes/data-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/data-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Data_classes_in_exported_file { @Test public void testAllFilesPresentInData_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/data-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("data-classes.kt") public void testData_classes() { - runTest("js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/deprecated") + @TestMetadata("js/js.translator/testData/typescript-export/js/deprecated") @TestDataPath("$PROJECT_ROOT") public class Deprecated { @Test public void testAllFilesPresentInDeprecated() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/deprecated"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/deprecated"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("deprecated.kt") public void testDeprecated() { - runTest("js/js.translator/testData/typescript-export/deprecated/deprecated.kt"); + runTest("js/js.translator/testData/typescript-export/js/deprecated/deprecated.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/deprecated-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Deprecated_in_exported_file { @Test public void testAllFilesPresentInDeprecated_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/deprecated-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("deprecated.kt") public void testDeprecated() { - runTest("js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated.kt"); + runTest("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/enum-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/enum-classes") @TestDataPath("$PROJECT_ROOT") public class Enum_classes { @Test public void testAllFilesPresentInEnum_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/enum-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/enum-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("enum-classes.kt") public void testEnum_classes() { - runTest("js/js.translator/testData/typescript-export/enum-classes/enum-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/enum-classes/enum-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/enum-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Enum_classes_in_exported_file { @Test public void testAllFilesPresentInEnum_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/enum-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("enum-classes.kt") public void testEnum_classes() { - runTest("js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/escaped-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/escaped-declarations") @TestDataPath("$PROJECT_ROOT") public class Escaped_declarations { @Test public void testAllFilesPresentInEscaped_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/escaped-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/escaped-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("escaped-declarations.kt") public void testEscaped_declarations() { - runTest("js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Escaped_declarations_in_exported_file { @Test public void testAllFilesPresentInEscaped_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("escaped-declarations.kt") public void testEscaped_declarations() { - runTest("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/excluded-exported-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/excluded-exported-declarations") @TestDataPath("$PROJECT_ROOT") public class Excluded_exported_declarations { @Test public void testAllFilesPresentInExcluded_exported_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/excluded-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/excluded-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("excluded-exported-declarations.kt") public void testExcluded_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Excluded_exported_declarations_in_exported_file { @Test public void testAllFilesPresentInExcluded_exported_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("excluded-exported-declarations.kt") public void testExcluded_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/functions") + @TestMetadata("js/js.translator/testData/typescript-export/js/functions") @TestDataPath("$PROJECT_ROOT") public class Functions { @Test public void testAllFilesPresentInFunctions() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/functions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/functions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("functions.kt") public void testFunctions() { - runTest("js/js.translator/testData/typescript-export/functions/functions.kt"); + runTest("js/js.translator/testData/typescript-export/js/functions/functions.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/functions-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/functions-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Functions_in_exported_file { @Test public void testAllFilesPresentInFunctions_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/functions-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/functions-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("functions.kt") public void testFunctions() { - runTest("js/js.translator/testData/typescript-export/functions-in-exported-file/functions.kt"); + runTest("js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/implicit-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/implicit-export") @TestDataPath("$PROJECT_ROOT") public class Implicit_export { @Test public void testAllFilesPresentInImplicit_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("implicit-export.kt") public void testImplicit_export() { - runTest("js/js.translator/testData/typescript-export/implicit-export/implicit-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/implicit-export/implicit-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inheritance") + @TestMetadata("js/js.translator/testData/typescript-export/js/inheritance") @TestDataPath("$PROJECT_ROOT") public class Inheritance { @Test public void testAllFilesPresentInInheritance() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("inheritance.kt") public void testInheritance() { - runTest("js/js.translator/testData/typescript-export/inheritance/inheritance.kt"); + runTest("js/js.translator/testData/typescript-export/js/inheritance/inheritance.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inner-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/inner-classes") @TestDataPath("$PROJECT_ROOT") public class Inner_classes { @Test public void testAllFilesPresentInInner_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inner-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inner-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("inner-class.kt") public void testInner_class() { - runTest("js/js.translator/testData/typescript-export/inner-classes/inner-class.kt"); + runTest("js/js.translator/testData/typescript-export/js/inner-classes/inner-class.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inner-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Inner_classes_in_exported_file { @Test public void testAllFilesPresentInInner_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inner-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("inner-class.kt") public void testInner_class() { - runTest("js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class.kt"); + runTest("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/interfaces") + @TestMetadata("js/js.translator/testData/typescript-export/js/interfaces") @TestDataPath("$PROJECT_ROOT") public class Interfaces { @Test public void testAllFilesPresentInInterfaces() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("interfaces.kt") public void testInterfaces() { - runTest("js/js.translator/testData/typescript-export/interfaces/interfaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/interfaces/interfaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/interfaces-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Interfaces_in_exported_file { @Test public void testAllFilesPresentInInterfaces_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/interfaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("interfaces.kt") public void testInterfaces() { - runTest("js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/js-name") + @TestMetadata("js/js.translator/testData/typescript-export/js/js-name") @TestDataPath("$PROJECT_ROOT") public class Js_name { @Test public void testAllFilesPresentInJs_name() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js-name"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/js-name"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("js-name.kt") public void testJs_name() { - runTest("js/js.translator/testData/typescript-export/js-name/js-name.kt"); + runTest("js/js.translator/testData/typescript-export/js/js-name/js-name.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/js-name-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/js-name-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Js_name_in_exported_file { @Test public void testAllFilesPresentInJs_name_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js-name-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/js-name-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("js-name.kt") public void testJs_name() { - runTest("js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name.kt"); + runTest("js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/member-properties") + @TestMetadata("js/js.translator/testData/typescript-export/js/member-properties") @TestDataPath("$PROJECT_ROOT") public class Member_properties { @Test public void testAllFilesPresentInMember_properties() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/member-properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/member-properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("member-properties.kt") public void testMember_properties() { - runTest("js/js.translator/testData/typescript-export/member-properties/member-properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/member-properties/member-properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/member-properties-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Member_properties_in_exported_file { @Test public void testAllFilesPresentInMember_properties_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/member-properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("member-properties.kt") public void testMember_properties() { - runTest("js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/methods") + @TestMetadata("js/js.translator/testData/typescript-export/js/methods") @TestDataPath("$PROJECT_ROOT") public class Methods { @Test public void testAllFilesPresentInMethods() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/methods"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/methods"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("methods.kt") public void testMethods() { - runTest("js/js.translator/testData/typescript-export/methods/methods.kt"); + runTest("js/js.translator/testData/typescript-export/js/methods/methods.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/methods-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/methods-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Methods_in_exported_file { @Test public void testAllFilesPresentInMethods_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/methods-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/methods-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("methods.kt") public void testMethods() { - runTest("js/js.translator/testData/typescript-export/methods-in-exported-file/methods.kt"); + runTest("js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/module-systems") + @TestMetadata("js/js.translator/testData/typescript-export/js/module-systems") @TestDataPath("$PROJECT_ROOT") public class Module_systems { @Test public void testAllFilesPresentInModule_systems() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/module-systems"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/module-systems"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("commonjs.kt") public void testCommonjs() { - runTest("js/js.translator/testData/typescript-export/module-systems/commonjs.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/commonjs.kt"); } @Test @TestMetadata("esm.kt") public void testEsm() { - runTest("js/js.translator/testData/typescript-export/module-systems/esm.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/esm.kt"); } @Test @TestMetadata("plain.kt") public void testPlain() { - runTest("js/js.translator/testData/typescript-export/module-systems/plain.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/plain.kt"); } @Test @TestMetadata("umd.kt") public void testUmd() { - runTest("js/js.translator/testData/typescript-export/module-systems/umd.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/umd.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/module-systems-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Module_systems_in_exported_file { @Test public void testAllFilesPresentInModule_systems_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/module-systems-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("commonjs.kt") public void testCommonjs() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/commonjs.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/commonjs.kt"); } @Test @TestMetadata("esm.kt") public void testEsm() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/esm.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/esm.kt"); } @Test @TestMetadata("plain.kt") public void testPlain() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/plain.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/plain.kt"); } @Test @TestMetadata("umd.kt") public void testUmd() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/umd.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/umd.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/namespaces") + @TestMetadata("js/js.translator/testData/typescript-export/js/namespaces") @TestDataPath("$PROJECT_ROOT") public class Namespaces { @Test public void testAllFilesPresentInNamespaces() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("namespaces.kt") public void testNamespaces() { - runTest("js/js.translator/testData/typescript-export/namespaces/namespaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/namespaces/namespaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/namespaces-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Namespaces_in_exported_file { @Test public void testAllFilesPresentInNamespaces_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("namespaces.kt") public void testNamespaces() { - runTest("js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/not-exported-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/not-exported-declarations") @TestDataPath("$PROJECT_ROOT") public class Not_exported_declarations { @Test public void testAllFilesPresentInNot_exported_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/not-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/not-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("not-exported-declarations.kt") public void testNot_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Not_exported_declarations_in_exported_file { @Test public void testAllFilesPresentInNot_exported_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("not-exported-declarations.kt") public void testNot_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/objects") + @TestMetadata("js/js.translator/testData/typescript-export/js/objects") @TestDataPath("$PROJECT_ROOT") public class Objects { @Test public void testAllFilesPresentInObjects() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/objects"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/objects"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("objects.kt") public void testObjects() { - runTest("js/js.translator/testData/typescript-export/objects/objects.kt"); + runTest("js/js.translator/testData/typescript-export/js/objects/objects.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/objects-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/objects-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Objects_in_exported_file { @Test public void testAllFilesPresentInObjects_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/objects-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/objects-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("objects.kt") public void testObjects() { - runTest("js/js.translator/testData/typescript-export/objects-in-exported-file/objects.kt"); + runTest("js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/primitives") + @TestMetadata("js/js.translator/testData/typescript-export/js/primitives") @TestDataPath("$PROJECT_ROOT") public class Primitives { @Test public void testAllFilesPresentInPrimitives() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("primitives.kt") public void testPrimitives() { - runTest("js/js.translator/testData/typescript-export/primitives/primitives.kt"); + runTest("js/js.translator/testData/typescript-export/js/primitives/primitives.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/primitives-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/primitives-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Primitives_in_exported_file { @Test public void testAllFilesPresentInPrimitives_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/primitives-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("primitives.kt") public void testPrimitives() { - runTest("js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives.kt"); + runTest("js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/private-primary-constructor") + @TestMetadata("js/js.translator/testData/typescript-export/js/private-primary-constructor") @TestDataPath("$PROJECT_ROOT") public class Private_primary_constructor { @Test public void testAllFilesPresentInPrivate_primary_constructor() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("private-primary-constructor.kt") public void testPrivate_primary_constructor() { - runTest("js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.kt"); + runTest("js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/properties") + @TestMetadata("js/js.translator/testData/typescript-export/js/properties") @TestDataPath("$PROJECT_ROOT") public class Properties { @Test public void testAllFilesPresentInProperties() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("properties.kt") public void testProperties() { - runTest("js/js.translator/testData/typescript-export/properties/properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/properties/properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/properties-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/properties-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Properties_in_exported_file { @Test public void testAllFilesPresentInProperties_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("properties.kt") public void testProperties() { - runTest("js/js.translator/testData/typescript-export/properties-in-exported-file/properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/regular-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/regular-classes") @TestDataPath("$PROJECT_ROOT") public class Regular_classes { @Test public void testAllFilesPresentInRegular_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/regular-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/regular-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("regular-classes.kt") public void testRegular_classes() { - runTest("js/js.translator/testData/typescript-export/regular-classes/regular-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/regular-classes/regular-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/regular-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Regular_classes_in_exported_file { @Test public void testAllFilesPresentInRegular_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/regular-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("regular-classes.kt") public void testRegular_classes() { - runTest("js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/sealed-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/sealed-classes") @TestDataPath("$PROJECT_ROOT") public class Sealed_classes { @Test public void testAllFilesPresentInSealed_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/sealed-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/sealed-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("sealed-classes.kt") public void testSealed_classes() { - runTest("js/js.translator/testData/typescript-export/sealed-classes/sealed-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Sealed_classes_in_exported_file { @Test public void testAllFilesPresentInSealed_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("sealed-classes.kt") public void testSealed_classes() { - runTest("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/selective-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/selective-export") @TestDataPath("$PROJECT_ROOT") public class Selective_export { @Test public void testAllFilesPresentInSelective_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/selective-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/selective-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("selective-export.kt") public void testSelective_export() { - runTest("js/js.translator/testData/typescript-export/selective-export/selective-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/selective-export/selective-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/strict-implicit-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/strict-implicit-export") @TestDataPath("$PROJECT_ROOT") public class Strict_implicit_export { @Test public void testAllFilesPresentInStrict_implicit_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/strict-implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/strict-implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("strict-implicit-export.kt") public void testStrict_implicit_export() { - runTest("js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/visibility") + @TestMetadata("js/js.translator/testData/typescript-export/js/visibility") @TestDataPath("$PROJECT_ROOT") public class Visibility { @Test public void testAllFilesPresentInVisibility() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("visibility.kt") public void testVisibility() { - runTest("js/js.translator/testData/typescript-export/visibility/visibility.kt"); + runTest("js/js.translator/testData/typescript-export/js/visibility/visibility.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/visibility-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/visibility-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Visibility_in_exported_file { @Test public void testAllFilesPresentInVisibility_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/visibility-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test @TestMetadata("visibility.kt") public void testVisibility() { - runTest("js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility.kt"); + runTest("js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility.kt"); } } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsTypeScriptExportTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsTypeScriptExportTestGenerated.java index 1ef525854df..6148f53224b 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsTypeScriptExportTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsTypeScriptExportTestGenerated.java @@ -17,863 +17,863 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("js/js.translator/testData/typescript-export") +@TestMetadata("js/js.translator/testData/typescript-export/js") @TestDataPath("$PROJECT_ROOT") public class IrJsTypeScriptExportTestGenerated extends AbstractIrJsTypeScriptExportTest { @Test - public void testAllFilesPresentInTypescript_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + public void testAllFilesPresentInJs() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/abstract-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/abstract-classes") @TestDataPath("$PROJECT_ROOT") public class Abstract_classes { @Test @TestMetadata("abstract-classes.kt") public void testAbstract_classes() { - runTest("js/js.translator/testData/typescript-export/abstract-classes/abstract-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes.kt"); } @Test public void testAllFilesPresentInAbstract_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/abstract-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/abstract-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Abstract_classes_in_exported_file { @Test @TestMetadata("abstract-classes.kt") public void testAbstract_classes() { - runTest("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes.kt"); } @Test public void testAllFilesPresentInAbstract_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/abstract-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/collections") + @TestMetadata("js/js.translator/testData/typescript-export/js/collections") @TestDataPath("$PROJECT_ROOT") public class Collections { @Test public void testAllFilesPresentInCollections() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("collections.kt") public void testCollections() { - runTest("js/js.translator/testData/typescript-export/collections/collections.kt"); + runTest("js/js.translator/testData/typescript-export/js/collections/collections.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/collections-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/collections-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Collections_in_exported_file { @Test public void testAllFilesPresentInCollections_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/collections-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/collections-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("collections.kt") public void testCollections() { - runTest("js/js.translator/testData/typescript-export/collections-in-exported-file/collections.kt"); + runTest("js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/constructors") + @TestMetadata("js/js.translator/testData/typescript-export/js/constructors") @TestDataPath("$PROJECT_ROOT") public class Constructors { @Test public void testAllFilesPresentInConstructors() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("constructors.kt") public void testConstructors() { - runTest("js/js.translator/testData/typescript-export/constructors/constructors.kt"); + runTest("js/js.translator/testData/typescript-export/js/constructors/constructors.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/constructors-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/constructors-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Constructors_in_exported_file { @Test public void testAllFilesPresentInConstructors_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/constructors-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("constructors.kt") public void testConstructors() { - runTest("js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors.kt"); + runTest("js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/data-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/data-classes") @TestDataPath("$PROJECT_ROOT") public class Data_classes { @Test public void testAllFilesPresentInData_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/data-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/data-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("data-classes.kt") public void testData_classes() { - runTest("js/js.translator/testData/typescript-export/data-classes/data-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/data-classes/data-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/data-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Data_classes_in_exported_file { @Test public void testAllFilesPresentInData_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/data-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("data-classes.kt") public void testData_classes() { - runTest("js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/deprecated") + @TestMetadata("js/js.translator/testData/typescript-export/js/deprecated") @TestDataPath("$PROJECT_ROOT") public class Deprecated { @Test public void testAllFilesPresentInDeprecated() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/deprecated"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/deprecated"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("deprecated.kt") public void testDeprecated() { - runTest("js/js.translator/testData/typescript-export/deprecated/deprecated.kt"); + runTest("js/js.translator/testData/typescript-export/js/deprecated/deprecated.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/deprecated-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Deprecated_in_exported_file { @Test public void testAllFilesPresentInDeprecated_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/deprecated-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("deprecated.kt") public void testDeprecated() { - runTest("js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated.kt"); + runTest("js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/enum-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/enum-classes") @TestDataPath("$PROJECT_ROOT") public class Enum_classes { @Test public void testAllFilesPresentInEnum_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/enum-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/enum-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("enum-classes.kt") public void testEnum_classes() { - runTest("js/js.translator/testData/typescript-export/enum-classes/enum-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/enum-classes/enum-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/enum-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Enum_classes_in_exported_file { @Test public void testAllFilesPresentInEnum_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/enum-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("enum-classes.kt") public void testEnum_classes() { - runTest("js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/escaped-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/escaped-declarations") @TestDataPath("$PROJECT_ROOT") public class Escaped_declarations { @Test public void testAllFilesPresentInEscaped_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/escaped-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/escaped-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("escaped-declarations.kt") public void testEscaped_declarations() { - runTest("js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Escaped_declarations_in_exported_file { @Test public void testAllFilesPresentInEscaped_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("escaped-declarations.kt") public void testEscaped_declarations() { - runTest("js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/excluded-exported-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/excluded-exported-declarations") @TestDataPath("$PROJECT_ROOT") public class Excluded_exported_declarations { @Test public void testAllFilesPresentInExcluded_exported_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/excluded-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/excluded-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("excluded-exported-declarations.kt") public void testExcluded_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Excluded_exported_declarations_in_exported_file { @Test public void testAllFilesPresentInExcluded_exported_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("excluded-exported-declarations.kt") public void testExcluded_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/functions") + @TestMetadata("js/js.translator/testData/typescript-export/js/functions") @TestDataPath("$PROJECT_ROOT") public class Functions { @Test public void testAllFilesPresentInFunctions() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/functions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/functions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("functions.kt") public void testFunctions() { - runTest("js/js.translator/testData/typescript-export/functions/functions.kt"); + runTest("js/js.translator/testData/typescript-export/js/functions/functions.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/functions-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/functions-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Functions_in_exported_file { @Test public void testAllFilesPresentInFunctions_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/functions-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/functions-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("functions.kt") public void testFunctions() { - runTest("js/js.translator/testData/typescript-export/functions-in-exported-file/functions.kt"); + runTest("js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/implicit-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/implicit-export") @TestDataPath("$PROJECT_ROOT") public class Implicit_export { @Test public void testAllFilesPresentInImplicit_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("implicit-export.kt") public void testImplicit_export() { - runTest("js/js.translator/testData/typescript-export/implicit-export/implicit-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/implicit-export/implicit-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inheritance") + @TestMetadata("js/js.translator/testData/typescript-export/js/inheritance") @TestDataPath("$PROJECT_ROOT") public class Inheritance { @Test public void testAllFilesPresentInInheritance() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("inheritance.kt") public void testInheritance() { - runTest("js/js.translator/testData/typescript-export/inheritance/inheritance.kt"); + runTest("js/js.translator/testData/typescript-export/js/inheritance/inheritance.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inner-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/inner-classes") @TestDataPath("$PROJECT_ROOT") public class Inner_classes { @Test public void testAllFilesPresentInInner_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inner-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inner-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("inner-class.kt") public void testInner_class() { - runTest("js/js.translator/testData/typescript-export/inner-classes/inner-class.kt"); + runTest("js/js.translator/testData/typescript-export/js/inner-classes/inner-class.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/inner-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Inner_classes_in_exported_file { @Test public void testAllFilesPresentInInner_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inner-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("inner-class.kt") public void testInner_class() { - runTest("js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class.kt"); + runTest("js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/interfaces") + @TestMetadata("js/js.translator/testData/typescript-export/js/interfaces") @TestDataPath("$PROJECT_ROOT") public class Interfaces { @Test public void testAllFilesPresentInInterfaces() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("interfaces.kt") public void testInterfaces() { - runTest("js/js.translator/testData/typescript-export/interfaces/interfaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/interfaces/interfaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/interfaces-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Interfaces_in_exported_file { @Test public void testAllFilesPresentInInterfaces_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/interfaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("interfaces.kt") public void testInterfaces() { - runTest("js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/js-name") + @TestMetadata("js/js.translator/testData/typescript-export/js/js-name") @TestDataPath("$PROJECT_ROOT") public class Js_name { @Test public void testAllFilesPresentInJs_name() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js-name"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/js-name"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("js-name.kt") public void testJs_name() { - runTest("js/js.translator/testData/typescript-export/js-name/js-name.kt"); + runTest("js/js.translator/testData/typescript-export/js/js-name/js-name.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/js-name-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/js-name-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Js_name_in_exported_file { @Test public void testAllFilesPresentInJs_name_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js-name-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/js-name-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("js-name.kt") public void testJs_name() { - runTest("js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name.kt"); + runTest("js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/member-properties") + @TestMetadata("js/js.translator/testData/typescript-export/js/member-properties") @TestDataPath("$PROJECT_ROOT") public class Member_properties { @Test public void testAllFilesPresentInMember_properties() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/member-properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/member-properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("member-properties.kt") public void testMember_properties() { - runTest("js/js.translator/testData/typescript-export/member-properties/member-properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/member-properties/member-properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/member-properties-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Member_properties_in_exported_file { @Test public void testAllFilesPresentInMember_properties_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/member-properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("member-properties.kt") public void testMember_properties() { - runTest("js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/methods") + @TestMetadata("js/js.translator/testData/typescript-export/js/methods") @TestDataPath("$PROJECT_ROOT") public class Methods { @Test public void testAllFilesPresentInMethods() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/methods"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/methods"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("methods.kt") public void testMethods() { - runTest("js/js.translator/testData/typescript-export/methods/methods.kt"); + runTest("js/js.translator/testData/typescript-export/js/methods/methods.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/methods-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/methods-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Methods_in_exported_file { @Test public void testAllFilesPresentInMethods_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/methods-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/methods-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("methods.kt") public void testMethods() { - runTest("js/js.translator/testData/typescript-export/methods-in-exported-file/methods.kt"); + runTest("js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/module-systems") + @TestMetadata("js/js.translator/testData/typescript-export/js/module-systems") @TestDataPath("$PROJECT_ROOT") public class Module_systems { @Test public void testAllFilesPresentInModule_systems() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/module-systems"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/module-systems"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("commonjs.kt") public void testCommonjs() { - runTest("js/js.translator/testData/typescript-export/module-systems/commonjs.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/commonjs.kt"); } @Test @TestMetadata("esm.kt") public void testEsm() { - runTest("js/js.translator/testData/typescript-export/module-systems/esm.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/esm.kt"); } @Test @TestMetadata("plain.kt") public void testPlain() { - runTest("js/js.translator/testData/typescript-export/module-systems/plain.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/plain.kt"); } @Test @TestMetadata("umd.kt") public void testUmd() { - runTest("js/js.translator/testData/typescript-export/module-systems/umd.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems/umd.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/module-systems-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Module_systems_in_exported_file { @Test public void testAllFilesPresentInModule_systems_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/module-systems-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("commonjs.kt") public void testCommonjs() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/commonjs.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/commonjs.kt"); } @Test @TestMetadata("esm.kt") public void testEsm() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/esm.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/esm.kt"); } @Test @TestMetadata("plain.kt") public void testPlain() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/plain.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/plain.kt"); } @Test @TestMetadata("umd.kt") public void testUmd() { - runTest("js/js.translator/testData/typescript-export/module-systems-in-exported-file/umd.kt"); + runTest("js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/umd.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/namespaces") + @TestMetadata("js/js.translator/testData/typescript-export/js/namespaces") @TestDataPath("$PROJECT_ROOT") public class Namespaces { @Test public void testAllFilesPresentInNamespaces() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("namespaces.kt") public void testNamespaces() { - runTest("js/js.translator/testData/typescript-export/namespaces/namespaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/namespaces/namespaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/namespaces-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Namespaces_in_exported_file { @Test public void testAllFilesPresentInNamespaces_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("namespaces.kt") public void testNamespaces() { - runTest("js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces.kt"); + runTest("js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/not-exported-declarations") + @TestMetadata("js/js.translator/testData/typescript-export/js/not-exported-declarations") @TestDataPath("$PROJECT_ROOT") public class Not_exported_declarations { @Test public void testAllFilesPresentInNot_exported_declarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/not-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/not-exported-declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("not-exported-declarations.kt") public void testNot_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Not_exported_declarations_in_exported_file { @Test public void testAllFilesPresentInNot_exported_declarations_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("not-exported-declarations.kt") public void testNot_exported_declarations() { - runTest("js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations.kt"); + runTest("js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/objects") + @TestMetadata("js/js.translator/testData/typescript-export/js/objects") @TestDataPath("$PROJECT_ROOT") public class Objects { @Test public void testAllFilesPresentInObjects() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/objects"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/objects"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("objects.kt") public void testObjects() { - runTest("js/js.translator/testData/typescript-export/objects/objects.kt"); + runTest("js/js.translator/testData/typescript-export/js/objects/objects.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/objects-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/objects-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Objects_in_exported_file { @Test public void testAllFilesPresentInObjects_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/objects-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/objects-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("objects.kt") public void testObjects() { - runTest("js/js.translator/testData/typescript-export/objects-in-exported-file/objects.kt"); + runTest("js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/primitives") + @TestMetadata("js/js.translator/testData/typescript-export/js/primitives") @TestDataPath("$PROJECT_ROOT") public class Primitives { @Test public void testAllFilesPresentInPrimitives() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("primitives.kt") public void testPrimitives() { - runTest("js/js.translator/testData/typescript-export/primitives/primitives.kt"); + runTest("js/js.translator/testData/typescript-export/js/primitives/primitives.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/primitives-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/primitives-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Primitives_in_exported_file { @Test public void testAllFilesPresentInPrimitives_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/primitives-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("primitives.kt") public void testPrimitives() { - runTest("js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives.kt"); + runTest("js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/private-primary-constructor") + @TestMetadata("js/js.translator/testData/typescript-export/js/private-primary-constructor") @TestDataPath("$PROJECT_ROOT") public class Private_primary_constructor { @Test public void testAllFilesPresentInPrivate_primary_constructor() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("private-primary-constructor.kt") public void testPrivate_primary_constructor() { - runTest("js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.kt"); + runTest("js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/properties") + @TestMetadata("js/js.translator/testData/typescript-export/js/properties") @TestDataPath("$PROJECT_ROOT") public class Properties { @Test public void testAllFilesPresentInProperties() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/properties"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("properties.kt") public void testProperties() { - runTest("js/js.translator/testData/typescript-export/properties/properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/properties/properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/properties-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/properties-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Properties_in_exported_file { @Test public void testAllFilesPresentInProperties_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/properties-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("properties.kt") public void testProperties() { - runTest("js/js.translator/testData/typescript-export/properties-in-exported-file/properties.kt"); + runTest("js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/regular-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/regular-classes") @TestDataPath("$PROJECT_ROOT") public class Regular_classes { @Test public void testAllFilesPresentInRegular_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/regular-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/regular-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("regular-classes.kt") public void testRegular_classes() { - runTest("js/js.translator/testData/typescript-export/regular-classes/regular-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/regular-classes/regular-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/regular-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Regular_classes_in_exported_file { @Test public void testAllFilesPresentInRegular_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/regular-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("regular-classes.kt") public void testRegular_classes() { - runTest("js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/sealed-classes") + @TestMetadata("js/js.translator/testData/typescript-export/js/sealed-classes") @TestDataPath("$PROJECT_ROOT") public class Sealed_classes { @Test public void testAllFilesPresentInSealed_classes() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/sealed-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/sealed-classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("sealed-classes.kt") public void testSealed_classes() { - runTest("js/js.translator/testData/typescript-export/sealed-classes/sealed-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Sealed_classes_in_exported_file { @Test public void testAllFilesPresentInSealed_classes_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("sealed-classes.kt") public void testSealed_classes() { - runTest("js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes.kt"); + runTest("js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/selective-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/selective-export") @TestDataPath("$PROJECT_ROOT") public class Selective_export { @Test public void testAllFilesPresentInSelective_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/selective-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/selective-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("selective-export.kt") public void testSelective_export() { - runTest("js/js.translator/testData/typescript-export/selective-export/selective-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/selective-export/selective-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/strict-implicit-export") + @TestMetadata("js/js.translator/testData/typescript-export/js/strict-implicit-export") @TestDataPath("$PROJECT_ROOT") public class Strict_implicit_export { @Test public void testAllFilesPresentInStrict_implicit_export() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/strict-implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/strict-implicit-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("strict-implicit-export.kt") public void testStrict_implicit_export() { - runTest("js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export.kt"); + runTest("js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/visibility") + @TestMetadata("js/js.translator/testData/typescript-export/js/visibility") @TestDataPath("$PROJECT_ROOT") public class Visibility { @Test public void testAllFilesPresentInVisibility() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("visibility.kt") public void testVisibility() { - runTest("js/js.translator/testData/typescript-export/visibility/visibility.kt"); + runTest("js/js.translator/testData/typescript-export/js/visibility/visibility.kt"); } } @Nested - @TestMetadata("js/js.translator/testData/typescript-export/visibility-in-exported-file") + @TestMetadata("js/js.translator/testData/typescript-export/js/visibility-in-exported-file") @TestDataPath("$PROJECT_ROOT") public class Visibility_in_exported_file { @Test public void testAllFilesPresentInVisibility_in_exported_file() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/js/visibility-in-exported-file"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true); } @Test @TestMetadata("visibility.kt") public void testVisibility() { - runTest("js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility.kt"); + runTest("js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility.kt"); } } } diff --git a/js/js.translator/testData/typescript-export/deprecated-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/deprecated-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/deprecated-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/deprecated/tsconfig.json b/js/js.translator/testData/typescript-export/deprecated/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/deprecated/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/enum-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/enum-classes-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/enum-classes-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/enum-classes/tsconfig.json b/js/js.translator/testData/typescript-export/enum-classes/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/enum-classes/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/escaped-declarations/tsconfig.json b/js/js.translator/testData/typescript-export/escaped-declarations/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/escaped-declarations/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/excluded-exported-declarations/tsconfig.json b/js/js.translator/testData/typescript-export/excluded-exported-declarations/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/excluded-exported-declarations/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/functions-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/functions-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/functions-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/functions/tsconfig.json b/js/js.translator/testData/typescript-export/functions/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/functions/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/implicit-export/tsconfig.json b/js/js.translator/testData/typescript-export/implicit-export/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/implicit-export/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/inheritance/tsconfig.json b/js/js.translator/testData/typescript-export/inheritance/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/inheritance/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/inner-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/inner-classes-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/inner-classes-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/inner-classes/tsconfig.json b/js/js.translator/testData/typescript-export/inner-classes/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/inner-classes/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/interfaces-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/interfaces-in-exported-file/tsconfig.json deleted file mode 100644 index 706556bf1f5..00000000000 --- a/js/js.translator/testData/typescript-export/interfaces-in-exported-file/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/interfaces/tsconfig.json b/js/js.translator/testData/typescript-export/interfaces/tsconfig.json deleted file mode 100644 index 706556bf1f5..00000000000 --- a/js/js.translator/testData/typescript-export/interfaces/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/js-name-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js-name-in-exported-file/tsconfig.json deleted file mode 100644 index 706556bf1f5..00000000000 --- a/js/js.translator/testData/typescript-export/js-name-in-exported-file/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/js-name/tsconfig.json b/js/js.translator/testData/typescript-export/js-name/tsconfig.json deleted file mode 100644 index 706556bf1f5..00000000000 --- a/js/js.translator/testData/typescript-export/js-name/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes.d.ts b/js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes.d.ts rename to js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes.kt b/js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes.kt rename to js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes.kt diff --git a/js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes__main.ts b/js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/abstract-classes__main.ts rename to js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/abstract-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/abstract-classes-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/abstract-classes/abstract-classes.d.ts b/js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/abstract-classes/abstract-classes.d.ts rename to js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/abstract-classes/abstract-classes.kt b/js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/abstract-classes/abstract-classes.kt rename to js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes.kt diff --git a/js/js.translator/testData/typescript-export/abstract-classes/abstract-classes__main.ts b/js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/abstract-classes/abstract-classes__main.ts rename to js/js.translator/testData/typescript-export/js/abstract-classes/abstract-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/abstract-classes/tsconfig.json b/js/js.translator/testData/typescript-export/js/abstract-classes/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/abstract-classes/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/collections-in-exported-file/collections.d.ts b/js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/collections-in-exported-file/collections.d.ts rename to js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections.d.ts diff --git a/js/js.translator/testData/typescript-export/collections-in-exported-file/collections.kt b/js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections.kt similarity index 100% rename from js/js.translator/testData/typescript-export/collections-in-exported-file/collections.kt rename to js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections.kt diff --git a/js/js.translator/testData/typescript-export/collections-in-exported-file/collections__main.ts b/js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/collections-in-exported-file/collections__main.ts rename to js/js.translator/testData/typescript-export/js/collections-in-exported-file/collections__main.ts diff --git a/js/js.translator/testData/typescript-export/js/collections-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/collections-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/collections-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/collections/collections.d.ts b/js/js.translator/testData/typescript-export/js/collections/collections.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/collections/collections.d.ts rename to js/js.translator/testData/typescript-export/js/collections/collections.d.ts diff --git a/js/js.translator/testData/typescript-export/collections/collections.kt b/js/js.translator/testData/typescript-export/js/collections/collections.kt similarity index 100% rename from js/js.translator/testData/typescript-export/collections/collections.kt rename to js/js.translator/testData/typescript-export/js/collections/collections.kt diff --git a/js/js.translator/testData/typescript-export/collections/collections__main.ts b/js/js.translator/testData/typescript-export/js/collections/collections__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/collections/collections__main.ts rename to js/js.translator/testData/typescript-export/js/collections/collections__main.ts diff --git a/js/js.translator/testData/typescript-export/js/collections/tsconfig.json b/js/js.translator/testData/typescript-export/js/collections/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/collections/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/js/common.tsconfig.json b/js/js.translator/testData/typescript-export/js/common.tsconfig.json new file mode 100644 index 00000000000..84be71503be --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/common.tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "target": "es5", + "strict": true, + "newLine": "lf", + "lib": ["es2015", "dom"] + } +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors.d.ts b/js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors.d.ts rename to js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors.d.ts diff --git a/js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors.kt b/js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors.kt similarity index 100% rename from js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors.kt rename to js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors.kt diff --git a/js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors__main.ts b/js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/constructors-in-exported-file/constructors__main.ts rename to js/js.translator/testData/typescript-export/js/constructors-in-exported-file/constructors__main.ts diff --git a/js/js.translator/testData/typescript-export/js/constructors-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/constructors-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/constructors-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/constructors/constructors.d.ts b/js/js.translator/testData/typescript-export/js/constructors/constructors.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/constructors/constructors.d.ts rename to js/js.translator/testData/typescript-export/js/constructors/constructors.d.ts diff --git a/js/js.translator/testData/typescript-export/constructors/constructors.kt b/js/js.translator/testData/typescript-export/js/constructors/constructors.kt similarity index 100% rename from js/js.translator/testData/typescript-export/constructors/constructors.kt rename to js/js.translator/testData/typescript-export/js/constructors/constructors.kt diff --git a/js/js.translator/testData/typescript-export/constructors/constructors__main.ts b/js/js.translator/testData/typescript-export/js/constructors/constructors__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/constructors/constructors__main.ts rename to js/js.translator/testData/typescript-export/js/constructors/constructors__main.ts diff --git a/js/js.translator/testData/typescript-export/js/constructors/tsconfig.json b/js/js.translator/testData/typescript-export/js/constructors/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/constructors/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes.d.ts b/js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes.d.ts rename to js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes.kt b/js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes.kt rename to js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes.kt diff --git a/js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes__main.ts b/js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/data-classes-in-exported-file/data-classes__main.ts rename to js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/data-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/data-classes-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/data-classes/data-classes.d.ts b/js/js.translator/testData/typescript-export/js/data-classes/data-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/data-classes/data-classes.d.ts rename to js/js.translator/testData/typescript-export/js/data-classes/data-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/data-classes/data-classes.kt b/js/js.translator/testData/typescript-export/js/data-classes/data-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/data-classes/data-classes.kt rename to js/js.translator/testData/typescript-export/js/data-classes/data-classes.kt diff --git a/js/js.translator/testData/typescript-export/data-classes/data-classes__main.ts b/js/js.translator/testData/typescript-export/js/data-classes/data-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/data-classes/data-classes__main.ts rename to js/js.translator/testData/typescript-export/js/data-classes/data-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/data-classes/tsconfig.json b/js/js.translator/testData/typescript-export/js/data-classes/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/data-classes/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated.d.ts b/js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated.d.ts rename to js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated.d.ts diff --git a/js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated.kt b/js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated.kt similarity index 100% rename from js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated.kt rename to js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated.kt diff --git a/js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated__main.ts b/js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/deprecated-in-exported-file/deprecated__main.ts rename to js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/deprecated__main.ts diff --git a/js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/deprecated-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/deprecated/deprecated.d.ts b/js/js.translator/testData/typescript-export/js/deprecated/deprecated.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/deprecated/deprecated.d.ts rename to js/js.translator/testData/typescript-export/js/deprecated/deprecated.d.ts diff --git a/js/js.translator/testData/typescript-export/deprecated/deprecated.kt b/js/js.translator/testData/typescript-export/js/deprecated/deprecated.kt similarity index 100% rename from js/js.translator/testData/typescript-export/deprecated/deprecated.kt rename to js/js.translator/testData/typescript-export/js/deprecated/deprecated.kt diff --git a/js/js.translator/testData/typescript-export/deprecated/deprecated__main.ts b/js/js.translator/testData/typescript-export/js/deprecated/deprecated__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/deprecated/deprecated__main.ts rename to js/js.translator/testData/typescript-export/js/deprecated/deprecated__main.ts diff --git a/js/js.translator/testData/typescript-export/js/deprecated/tsconfig.json b/js/js.translator/testData/typescript-export/js/deprecated/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/deprecated/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes.d.ts b/js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes.d.ts rename to js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes.kt b/js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes.kt rename to js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes.kt diff --git a/js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes__main.ts b/js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/enum-classes-in-exported-file/enum-classes__main.ts rename to js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/enum-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/enum-classes-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/enum-classes/enum-classes.d.ts b/js/js.translator/testData/typescript-export/js/enum-classes/enum-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/enum-classes/enum-classes.d.ts rename to js/js.translator/testData/typescript-export/js/enum-classes/enum-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/enum-classes/enum-classes.kt b/js/js.translator/testData/typescript-export/js/enum-classes/enum-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/enum-classes/enum-classes.kt rename to js/js.translator/testData/typescript-export/js/enum-classes/enum-classes.kt diff --git a/js/js.translator/testData/typescript-export/enum-classes/enum-classes__main.ts b/js/js.translator/testData/typescript-export/js/enum-classes/enum-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/enum-classes/enum-classes__main.ts rename to js/js.translator/testData/typescript-export/js/enum-classes/enum-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/enum-classes/tsconfig.json b/js/js.translator/testData/typescript-export/js/enum-classes/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/enum-classes/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations.d.ts b/js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations.d.ts rename to js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations.d.ts diff --git a/js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations.kt b/js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations.kt similarity index 100% rename from js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations.kt rename to js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations.kt diff --git a/js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations__main.ts b/js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/escaped-declarations-in-exported-file/escaped-declarations__main.ts rename to js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/escaped-declarations__main.ts diff --git a/js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/escaped-declarations-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations.d.ts b/js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations.d.ts rename to js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations.d.ts diff --git a/js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations.kt b/js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations.kt similarity index 100% rename from js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations.kt rename to js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations.kt diff --git a/js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations__main.ts b/js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/escaped-declarations/escaped-declarations__main.ts rename to js/js.translator/testData/typescript-export/js/escaped-declarations/escaped-declarations__main.ts diff --git a/js/js.translator/testData/typescript-export/js/escaped-declarations/tsconfig.json b/js/js.translator/testData/typescript-export/js/escaped-declarations/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/escaped-declarations/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.d.ts b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.d.ts rename to js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.d.ts diff --git a/js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt similarity index 100% rename from js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt rename to js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations.kt diff --git a/js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations__main.ts b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/excluded-exported-declarations-in-exported-file/excluded-exported-declarations__main.ts rename to js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/excluded-exported-declarations__main.ts diff --git a/js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations.d.ts b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations.d.ts rename to js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations.d.ts diff --git a/js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations.kt b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations.kt similarity index 100% rename from js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations.kt rename to js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations.kt diff --git a/js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations__main.ts b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/excluded-exported-declarations/excluded-exported-declarations__main.ts rename to js/js.translator/testData/typescript-export/js/excluded-exported-declarations/excluded-exported-declarations__main.ts diff --git a/js/js.translator/testData/typescript-export/js/excluded-exported-declarations/tsconfig.json b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/excluded-exported-declarations/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/functions-in-exported-file/functions.d.ts b/js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/functions-in-exported-file/functions.d.ts rename to js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions.d.ts diff --git a/js/js.translator/testData/typescript-export/functions-in-exported-file/functions.kt b/js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions.kt similarity index 100% rename from js/js.translator/testData/typescript-export/functions-in-exported-file/functions.kt rename to js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions.kt diff --git a/js/js.translator/testData/typescript-export/functions-in-exported-file/functions__main.ts b/js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/functions-in-exported-file/functions__main.ts rename to js/js.translator/testData/typescript-export/js/functions-in-exported-file/functions__main.ts diff --git a/js/js.translator/testData/typescript-export/js/functions-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/functions-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/functions-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/functions/functions.d.ts b/js/js.translator/testData/typescript-export/js/functions/functions.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/functions/functions.d.ts rename to js/js.translator/testData/typescript-export/js/functions/functions.d.ts diff --git a/js/js.translator/testData/typescript-export/functions/functions.kt b/js/js.translator/testData/typescript-export/js/functions/functions.kt similarity index 100% rename from js/js.translator/testData/typescript-export/functions/functions.kt rename to js/js.translator/testData/typescript-export/js/functions/functions.kt diff --git a/js/js.translator/testData/typescript-export/functions/functions__main.ts b/js/js.translator/testData/typescript-export/js/functions/functions__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/functions/functions__main.ts rename to js/js.translator/testData/typescript-export/js/functions/functions__main.ts diff --git a/js/js.translator/testData/typescript-export/js/functions/tsconfig.json b/js/js.translator/testData/typescript-export/js/functions/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/functions/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/implicit-export/implicit-export.d.ts b/js/js.translator/testData/typescript-export/js/implicit-export/implicit-export.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/implicit-export/implicit-export.d.ts rename to js/js.translator/testData/typescript-export/js/implicit-export/implicit-export.d.ts diff --git a/js/js.translator/testData/typescript-export/implicit-export/implicit-export.kt b/js/js.translator/testData/typescript-export/js/implicit-export/implicit-export.kt similarity index 100% rename from js/js.translator/testData/typescript-export/implicit-export/implicit-export.kt rename to js/js.translator/testData/typescript-export/js/implicit-export/implicit-export.kt diff --git a/js/js.translator/testData/typescript-export/implicit-export/implicit-export__main.ts b/js/js.translator/testData/typescript-export/js/implicit-export/implicit-export__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/implicit-export/implicit-export__main.ts rename to js/js.translator/testData/typescript-export/js/implicit-export/implicit-export__main.ts diff --git a/js/js.translator/testData/typescript-export/js/implicit-export/tsconfig.json b/js/js.translator/testData/typescript-export/js/implicit-export/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/implicit-export/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/inheritance/inheritance.d.ts b/js/js.translator/testData/typescript-export/js/inheritance/inheritance.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/inheritance/inheritance.d.ts rename to js/js.translator/testData/typescript-export/js/inheritance/inheritance.d.ts diff --git a/js/js.translator/testData/typescript-export/inheritance/inheritance.kt b/js/js.translator/testData/typescript-export/js/inheritance/inheritance.kt similarity index 100% rename from js/js.translator/testData/typescript-export/inheritance/inheritance.kt rename to js/js.translator/testData/typescript-export/js/inheritance/inheritance.kt diff --git a/js/js.translator/testData/typescript-export/inheritance/inheritance__main.ts b/js/js.translator/testData/typescript-export/js/inheritance/inheritance__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/inheritance/inheritance__main.ts rename to js/js.translator/testData/typescript-export/js/inheritance/inheritance__main.ts diff --git a/js/js.translator/testData/typescript-export/js/inheritance/tsconfig.json b/js/js.translator/testData/typescript-export/js/inheritance/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/inheritance/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class.d.ts b/js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class.d.ts rename to js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class.d.ts diff --git a/js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class.kt b/js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class.kt similarity index 100% rename from js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class.kt rename to js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class.kt diff --git a/js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class__main.ts b/js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/inner-classes-in-exported-file/inner-class__main.ts rename to js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/inner-class__main.ts diff --git a/js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/inner-classes-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/inner-classes/inner-class.d.ts b/js/js.translator/testData/typescript-export/js/inner-classes/inner-class.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/inner-classes/inner-class.d.ts rename to js/js.translator/testData/typescript-export/js/inner-classes/inner-class.d.ts diff --git a/js/js.translator/testData/typescript-export/inner-classes/inner-class.kt b/js/js.translator/testData/typescript-export/js/inner-classes/inner-class.kt similarity index 100% rename from js/js.translator/testData/typescript-export/inner-classes/inner-class.kt rename to js/js.translator/testData/typescript-export/js/inner-classes/inner-class.kt diff --git a/js/js.translator/testData/typescript-export/inner-classes/inner-class__main.ts b/js/js.translator/testData/typescript-export/js/inner-classes/inner-class__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/inner-classes/inner-class__main.ts rename to js/js.translator/testData/typescript-export/js/inner-classes/inner-class__main.ts diff --git a/js/js.translator/testData/typescript-export/js/inner-classes/tsconfig.json b/js/js.translator/testData/typescript-export/js/inner-classes/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/inner-classes/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.d.ts b/js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.d.ts rename to js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces.d.ts diff --git a/js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt b/js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces.kt similarity index 100% rename from js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt rename to js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces.kt diff --git a/js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces__main.ts b/js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces__main.ts rename to js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/interfaces__main.ts diff --git a/js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..7f6ad664e1b --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/interfaces-in-exported-file/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/interfaces/interfaces.d.ts b/js/js.translator/testData/typescript-export/js/interfaces/interfaces.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/interfaces/interfaces.d.ts rename to js/js.translator/testData/typescript-export/js/interfaces/interfaces.d.ts diff --git a/js/js.translator/testData/typescript-export/interfaces/interfaces.kt b/js/js.translator/testData/typescript-export/js/interfaces/interfaces.kt similarity index 100% rename from js/js.translator/testData/typescript-export/interfaces/interfaces.kt rename to js/js.translator/testData/typescript-export/js/interfaces/interfaces.kt diff --git a/js/js.translator/testData/typescript-export/interfaces/interfaces__main.ts b/js/js.translator/testData/typescript-export/js/interfaces/interfaces__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/interfaces/interfaces__main.ts rename to js/js.translator/testData/typescript-export/js/interfaces/interfaces__main.ts diff --git a/js/js.translator/testData/typescript-export/js/interfaces/tsconfig.json b/js/js.translator/testData/typescript-export/js/interfaces/tsconfig.json new file mode 100644 index 00000000000..7f6ad664e1b --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/interfaces/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name.d.ts b/js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name.d.ts rename to js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name.d.ts diff --git a/js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name.kt b/js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name.kt similarity index 100% rename from js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name.kt rename to js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name.kt diff --git a/js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name__main.ts b/js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/js-name-in-exported-file/js-name__main.ts rename to js/js.translator/testData/typescript-export/js/js-name-in-exported-file/js-name__main.ts diff --git a/js/js.translator/testData/typescript-export/js/js-name-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/js-name-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..7f6ad664e1b --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/js-name-in-exported-file/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/js-name/js-name.d.ts b/js/js.translator/testData/typescript-export/js/js-name/js-name.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/js-name/js-name.d.ts rename to js/js.translator/testData/typescript-export/js/js-name/js-name.d.ts diff --git a/js/js.translator/testData/typescript-export/js-name/js-name.kt b/js/js.translator/testData/typescript-export/js/js-name/js-name.kt similarity index 100% rename from js/js.translator/testData/typescript-export/js-name/js-name.kt rename to js/js.translator/testData/typescript-export/js/js-name/js-name.kt diff --git a/js/js.translator/testData/typescript-export/js-name/js-name__main.ts b/js/js.translator/testData/typescript-export/js/js-name/js-name__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/js-name/js-name__main.ts rename to js/js.translator/testData/typescript-export/js/js-name/js-name__main.ts diff --git a/js/js.translator/testData/typescript-export/js/js-name/tsconfig.json b/js/js.translator/testData/typescript-export/js/js-name/tsconfig.json new file mode 100644 index 00000000000..7f6ad664e1b --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/js-name/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties.d.ts b/js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties.d.ts rename to js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties.d.ts diff --git a/js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties.kt b/js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties.kt similarity index 100% rename from js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties.kt rename to js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties.kt diff --git a/js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties__main.ts b/js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/member-properties-in-exported-file/member-properties__main.ts rename to js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/member-properties__main.ts diff --git a/js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/member-properties-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/member-properties/member-properties.d.ts b/js/js.translator/testData/typescript-export/js/member-properties/member-properties.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/member-properties/member-properties.d.ts rename to js/js.translator/testData/typescript-export/js/member-properties/member-properties.d.ts diff --git a/js/js.translator/testData/typescript-export/member-properties/member-properties.kt b/js/js.translator/testData/typescript-export/js/member-properties/member-properties.kt similarity index 100% rename from js/js.translator/testData/typescript-export/member-properties/member-properties.kt rename to js/js.translator/testData/typescript-export/js/member-properties/member-properties.kt diff --git a/js/js.translator/testData/typescript-export/member-properties/member-properties__main.ts b/js/js.translator/testData/typescript-export/js/member-properties/member-properties__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/member-properties/member-properties__main.ts rename to js/js.translator/testData/typescript-export/js/member-properties/member-properties__main.ts diff --git a/js/js.translator/testData/typescript-export/js/member-properties/tsconfig.json b/js/js.translator/testData/typescript-export/js/member-properties/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/member-properties/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/methods-in-exported-file/methods.d.ts b/js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/methods-in-exported-file/methods.d.ts rename to js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods.d.ts diff --git a/js/js.translator/testData/typescript-export/methods-in-exported-file/methods.kt b/js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods.kt similarity index 100% rename from js/js.translator/testData/typescript-export/methods-in-exported-file/methods.kt rename to js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods.kt diff --git a/js/js.translator/testData/typescript-export/methods-in-exported-file/methods__main.ts b/js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/methods-in-exported-file/methods__main.ts rename to js/js.translator/testData/typescript-export/js/methods-in-exported-file/methods__main.ts diff --git a/js/js.translator/testData/typescript-export/js/methods-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/methods-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/methods-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/methods/methods.d.ts b/js/js.translator/testData/typescript-export/js/methods/methods.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/methods/methods.d.ts rename to js/js.translator/testData/typescript-export/js/methods/methods.d.ts diff --git a/js/js.translator/testData/typescript-export/methods/methods.kt b/js/js.translator/testData/typescript-export/js/methods/methods.kt similarity index 100% rename from js/js.translator/testData/typescript-export/methods/methods.kt rename to js/js.translator/testData/typescript-export/js/methods/methods.kt diff --git a/js/js.translator/testData/typescript-export/methods/methods__main.ts b/js/js.translator/testData/typescript-export/js/methods/methods__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/methods/methods__main.ts rename to js/js.translator/testData/typescript-export/js/methods/methods__main.ts diff --git a/js/js.translator/testData/typescript-export/js/methods/tsconfig.json b/js/js.translator/testData/typescript-export/js/methods/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/methods/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/commonjs.d.ts b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/commonjs.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/commonjs.d.ts rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/commonjs.d.ts diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/commonjs.kt b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/commonjs.kt similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/commonjs.kt rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/commonjs.kt diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/esm.d.ts b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/esm.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/esm.d.ts rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/esm.d.ts diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/esm.kt b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/esm.kt similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/esm.kt rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/esm.kt diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/plain.d.ts b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/plain.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/plain.d.ts rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/plain.d.ts diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/plain.kt b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/plain.kt similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/plain.kt rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/plain.kt diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/tsconfig.json rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/tsconfig.json diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/umd.d.ts b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/umd.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/umd.d.ts rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/umd.d.ts diff --git a/js/js.translator/testData/typescript-export/module-systems-in-exported-file/umd.kt b/js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/umd.kt similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems-in-exported-file/umd.kt rename to js/js.translator/testData/typescript-export/js/module-systems-in-exported-file/umd.kt diff --git a/js/js.translator/testData/typescript-export/module-systems/commonjs.d.ts b/js/js.translator/testData/typescript-export/js/module-systems/commonjs.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/commonjs.d.ts rename to js/js.translator/testData/typescript-export/js/module-systems/commonjs.d.ts diff --git a/js/js.translator/testData/typescript-export/module-systems/commonjs.kt b/js/js.translator/testData/typescript-export/js/module-systems/commonjs.kt similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/commonjs.kt rename to js/js.translator/testData/typescript-export/js/module-systems/commonjs.kt diff --git a/js/js.translator/testData/typescript-export/module-systems/esm.d.ts b/js/js.translator/testData/typescript-export/js/module-systems/esm.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/esm.d.ts rename to js/js.translator/testData/typescript-export/js/module-systems/esm.d.ts diff --git a/js/js.translator/testData/typescript-export/module-systems/esm.kt b/js/js.translator/testData/typescript-export/js/module-systems/esm.kt similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/esm.kt rename to js/js.translator/testData/typescript-export/js/module-systems/esm.kt diff --git a/js/js.translator/testData/typescript-export/module-systems/plain.d.ts b/js/js.translator/testData/typescript-export/js/module-systems/plain.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/plain.d.ts rename to js/js.translator/testData/typescript-export/js/module-systems/plain.d.ts diff --git a/js/js.translator/testData/typescript-export/module-systems/plain.kt b/js/js.translator/testData/typescript-export/js/module-systems/plain.kt similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/plain.kt rename to js/js.translator/testData/typescript-export/js/module-systems/plain.kt diff --git a/js/js.translator/testData/typescript-export/module-systems/tsconfig.json b/js/js.translator/testData/typescript-export/js/module-systems/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/tsconfig.json rename to js/js.translator/testData/typescript-export/js/module-systems/tsconfig.json diff --git a/js/js.translator/testData/typescript-export/module-systems/umd.d.ts b/js/js.translator/testData/typescript-export/js/module-systems/umd.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/umd.d.ts rename to js/js.translator/testData/typescript-export/js/module-systems/umd.d.ts diff --git a/js/js.translator/testData/typescript-export/module-systems/umd.kt b/js/js.translator/testData/typescript-export/js/module-systems/umd.kt similarity index 100% rename from js/js.translator/testData/typescript-export/module-systems/umd.kt rename to js/js.translator/testData/typescript-export/js/module-systems/umd.kt diff --git a/js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces.d.ts b/js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces.d.ts rename to js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces.d.ts diff --git a/js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces.kt b/js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces.kt similarity index 100% rename from js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces.kt rename to js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces.kt diff --git a/js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces__main.ts b/js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/namespaces-in-exported-file/namespaces__main.ts rename to js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/namespaces__main.ts diff --git a/js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/namespaces-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/namespaces/namespaces.d.ts b/js/js.translator/testData/typescript-export/js/namespaces/namespaces.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/namespaces/namespaces.d.ts rename to js/js.translator/testData/typescript-export/js/namespaces/namespaces.d.ts diff --git a/js/js.translator/testData/typescript-export/namespaces/namespaces.kt b/js/js.translator/testData/typescript-export/js/namespaces/namespaces.kt similarity index 100% rename from js/js.translator/testData/typescript-export/namespaces/namespaces.kt rename to js/js.translator/testData/typescript-export/js/namespaces/namespaces.kt diff --git a/js/js.translator/testData/typescript-export/namespaces/namespaces__main.ts b/js/js.translator/testData/typescript-export/js/namespaces/namespaces__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/namespaces/namespaces__main.ts rename to js/js.translator/testData/typescript-export/js/namespaces/namespaces__main.ts diff --git a/js/js.translator/testData/typescript-export/js/namespaces/tsconfig.json b/js/js.translator/testData/typescript-export/js/namespaces/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/namespaces/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations.d.ts b/js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations.d.ts rename to js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations.d.ts diff --git a/js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations.kt b/js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations.kt similarity index 100% rename from js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations.kt rename to js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations.kt diff --git a/js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations__main.ts b/js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/not-exported-declarations__main.ts rename to js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/not-exported-declarations__main.ts diff --git a/js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/not-exported-declarations-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations.d.ts b/js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations.d.ts rename to js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations.d.ts diff --git a/js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations.kt b/js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations.kt similarity index 100% rename from js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations.kt rename to js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations.kt diff --git a/js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations__main.ts b/js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/not-exported-declarations/not-exported-declarations__main.ts rename to js/js.translator/testData/typescript-export/js/not-exported-declarations/not-exported-declarations__main.ts diff --git a/js/js.translator/testData/typescript-export/js/not-exported-declarations/tsconfig.json b/js/js.translator/testData/typescript-export/js/not-exported-declarations/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/not-exported-declarations/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/objects-in-exported-file/objects.d.ts b/js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/objects-in-exported-file/objects.d.ts rename to js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects.d.ts diff --git a/js/js.translator/testData/typescript-export/objects-in-exported-file/objects.kt b/js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects.kt similarity index 100% rename from js/js.translator/testData/typescript-export/objects-in-exported-file/objects.kt rename to js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects.kt diff --git a/js/js.translator/testData/typescript-export/objects-in-exported-file/objects__main.ts b/js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/objects-in-exported-file/objects__main.ts rename to js/js.translator/testData/typescript-export/js/objects-in-exported-file/objects__main.ts diff --git a/js/js.translator/testData/typescript-export/js/objects-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/objects-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/objects-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/objects/objects.d.ts b/js/js.translator/testData/typescript-export/js/objects/objects.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/objects/objects.d.ts rename to js/js.translator/testData/typescript-export/js/objects/objects.d.ts diff --git a/js/js.translator/testData/typescript-export/objects/objects.kt b/js/js.translator/testData/typescript-export/js/objects/objects.kt similarity index 100% rename from js/js.translator/testData/typescript-export/objects/objects.kt rename to js/js.translator/testData/typescript-export/js/objects/objects.kt diff --git a/js/js.translator/testData/typescript-export/objects/objects__main.ts b/js/js.translator/testData/typescript-export/js/objects/objects__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/objects/objects__main.ts rename to js/js.translator/testData/typescript-export/js/objects/objects__main.ts diff --git a/js/js.translator/testData/typescript-export/js/objects/tsconfig.json b/js/js.translator/testData/typescript-export/js/objects/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/objects/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives.d.ts b/js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives.d.ts rename to js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives.d.ts diff --git a/js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives.kt b/js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives.kt similarity index 100% rename from js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives.kt rename to js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives.kt diff --git a/js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives__main.ts b/js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/primitives-in-exported-file/primitives__main.ts rename to js/js.translator/testData/typescript-export/js/primitives-in-exported-file/primitives__main.ts diff --git a/js/js.translator/testData/typescript-export/js/primitives-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/primitives-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/primitives-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/primitives/primitives.d.ts b/js/js.translator/testData/typescript-export/js/primitives/primitives.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/primitives/primitives.d.ts rename to js/js.translator/testData/typescript-export/js/primitives/primitives.d.ts diff --git a/js/js.translator/testData/typescript-export/primitives/primitives.kt b/js/js.translator/testData/typescript-export/js/primitives/primitives.kt similarity index 100% rename from js/js.translator/testData/typescript-export/primitives/primitives.kt rename to js/js.translator/testData/typescript-export/js/primitives/primitives.kt diff --git a/js/js.translator/testData/typescript-export/primitives/primitives__main.ts b/js/js.translator/testData/typescript-export/js/primitives/primitives__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/primitives/primitives__main.ts rename to js/js.translator/testData/typescript-export/js/primitives/primitives__main.ts diff --git a/js/js.translator/testData/typescript-export/js/primitives/tsconfig.json b/js/js.translator/testData/typescript-export/js/primitives/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/primitives/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.d.ts b/js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.d.ts rename to js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor.d.ts diff --git a/js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.kt b/js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor.kt similarity index 100% rename from js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.kt rename to js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor.kt diff --git a/js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor__main.ts b/js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor__main.ts rename to js/js.translator/testData/typescript-export/js/private-primary-constructor/private-primary-constructor__main.ts diff --git a/js/js.translator/testData/typescript-export/js/private-primary-constructor/tsconfig.json b/js/js.translator/testData/typescript-export/js/private-primary-constructor/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/private-primary-constructor/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/properties-in-exported-file/properties.d.ts b/js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/properties-in-exported-file/properties.d.ts rename to js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties.d.ts diff --git a/js/js.translator/testData/typescript-export/properties-in-exported-file/properties.kt b/js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties.kt similarity index 100% rename from js/js.translator/testData/typescript-export/properties-in-exported-file/properties.kt rename to js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties.kt diff --git a/js/js.translator/testData/typescript-export/properties-in-exported-file/properties__main.ts b/js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/properties-in-exported-file/properties__main.ts rename to js/js.translator/testData/typescript-export/js/properties-in-exported-file/properties__main.ts diff --git a/js/js.translator/testData/typescript-export/js/properties-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/properties-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/properties-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/properties/properties.d.ts b/js/js.translator/testData/typescript-export/js/properties/properties.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/properties/properties.d.ts rename to js/js.translator/testData/typescript-export/js/properties/properties.d.ts diff --git a/js/js.translator/testData/typescript-export/properties/properties.kt b/js/js.translator/testData/typescript-export/js/properties/properties.kt similarity index 100% rename from js/js.translator/testData/typescript-export/properties/properties.kt rename to js/js.translator/testData/typescript-export/js/properties/properties.kt diff --git a/js/js.translator/testData/typescript-export/properties/properties__main.ts b/js/js.translator/testData/typescript-export/js/properties/properties__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/properties/properties__main.ts rename to js/js.translator/testData/typescript-export/js/properties/properties__main.ts diff --git a/js/js.translator/testData/typescript-export/js/properties/tsconfig.json b/js/js.translator/testData/typescript-export/js/properties/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/properties/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes.d.ts b/js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes.d.ts rename to js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes.kt b/js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes.kt rename to js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes.kt diff --git a/js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes__main.ts b/js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/regular-classes-in-exported-file/regular-classes__main.ts rename to js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/regular-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/regular-classes-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/regular-classes/regular-classes.d.ts b/js/js.translator/testData/typescript-export/js/regular-classes/regular-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/regular-classes/regular-classes.d.ts rename to js/js.translator/testData/typescript-export/js/regular-classes/regular-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/regular-classes/regular-classes.kt b/js/js.translator/testData/typescript-export/js/regular-classes/regular-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/regular-classes/regular-classes.kt rename to js/js.translator/testData/typescript-export/js/regular-classes/regular-classes.kt diff --git a/js/js.translator/testData/typescript-export/regular-classes/regular-classes__main.ts b/js/js.translator/testData/typescript-export/js/regular-classes/regular-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/regular-classes/regular-classes__main.ts rename to js/js.translator/testData/typescript-export/js/regular-classes/regular-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/regular-classes/tsconfig.json b/js/js.translator/testData/typescript-export/js/regular-classes/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/regular-classes/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes.d.ts b/js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes.d.ts rename to js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes.kt b/js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes.kt rename to js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes.kt diff --git a/js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes__main.ts b/js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/sealed-classes__main.ts rename to js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/sealed-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/sealed-classes-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/sealed-classes/sealed-classes.d.ts b/js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/sealed-classes/sealed-classes.d.ts rename to js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes.d.ts diff --git a/js/js.translator/testData/typescript-export/sealed-classes/sealed-classes.kt b/js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes.kt similarity index 100% rename from js/js.translator/testData/typescript-export/sealed-classes/sealed-classes.kt rename to js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes.kt diff --git a/js/js.translator/testData/typescript-export/sealed-classes/sealed-classes__main.ts b/js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/sealed-classes/sealed-classes__main.ts rename to js/js.translator/testData/typescript-export/js/sealed-classes/sealed-classes__main.ts diff --git a/js/js.translator/testData/typescript-export/js/sealed-classes/tsconfig.json b/js/js.translator/testData/typescript-export/js/sealed-classes/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/sealed-classes/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/selective-export/selective-export.d.ts b/js/js.translator/testData/typescript-export/js/selective-export/selective-export.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/selective-export/selective-export.d.ts rename to js/js.translator/testData/typescript-export/js/selective-export/selective-export.d.ts diff --git a/js/js.translator/testData/typescript-export/selective-export/selective-export.kt b/js/js.translator/testData/typescript-export/js/selective-export/selective-export.kt similarity index 100% rename from js/js.translator/testData/typescript-export/selective-export/selective-export.kt rename to js/js.translator/testData/typescript-export/js/selective-export/selective-export.kt diff --git a/js/js.translator/testData/typescript-export/selective-export/selective-export__main.ts b/js/js.translator/testData/typescript-export/js/selective-export/selective-export__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/selective-export/selective-export__main.ts rename to js/js.translator/testData/typescript-export/js/selective-export/selective-export__main.ts diff --git a/js/js.translator/testData/typescript-export/js/selective-export/tsconfig.json b/js/js.translator/testData/typescript-export/js/selective-export/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/selective-export/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export.d.ts b/js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export.d.ts rename to js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export.d.ts diff --git a/js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export.kt b/js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export.kt similarity index 100% rename from js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export.kt rename to js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export.kt diff --git a/js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export__main.ts b/js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/strict-implicit-export/strict-implicit-export__main.ts rename to js/js.translator/testData/typescript-export/js/strict-implicit-export/strict-implicit-export__main.ts diff --git a/js/js.translator/testData/typescript-export/js/strict-implicit-export/tsconfig.json b/js/js.translator/testData/typescript-export/js/strict-implicit-export/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/strict-implicit-export/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/js/visibility-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/js/visibility-in-exported-file/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/visibility-in-exported-file/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility.d.ts b/js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility.d.ts rename to js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility.d.ts diff --git a/js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility.kt b/js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility.kt similarity index 100% rename from js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility.kt rename to js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility.kt diff --git a/js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility__main.ts b/js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/visibility-in-exported-file/visibility__main.ts rename to js/js.translator/testData/typescript-export/js/visibility-in-exported-file/visibility__main.ts diff --git a/js/js.translator/testData/typescript-export/js/visibility/tsconfig.json b/js/js.translator/testData/typescript-export/js/visibility/tsconfig.json new file mode 100644 index 00000000000..1e5f388a872 --- /dev/null +++ b/js/js.translator/testData/typescript-export/js/visibility/tsconfig.json @@ -0,0 +1,4 @@ +{ + "include": [ "./*" ], + "extends": "../../common.tsconfig.json" +} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/visibility/visibility.d.ts b/js/js.translator/testData/typescript-export/js/visibility/visibility.d.ts similarity index 100% rename from js/js.translator/testData/typescript-export/visibility/visibility.d.ts rename to js/js.translator/testData/typescript-export/js/visibility/visibility.d.ts diff --git a/js/js.translator/testData/typescript-export/visibility/visibility.kt b/js/js.translator/testData/typescript-export/js/visibility/visibility.kt similarity index 100% rename from js/js.translator/testData/typescript-export/visibility/visibility.kt rename to js/js.translator/testData/typescript-export/js/visibility/visibility.kt diff --git a/js/js.translator/testData/typescript-export/visibility/visibility__main.ts b/js/js.translator/testData/typescript-export/js/visibility/visibility__main.ts similarity index 100% rename from js/js.translator/testData/typescript-export/visibility/visibility__main.ts rename to js/js.translator/testData/typescript-export/js/visibility/visibility__main.ts diff --git a/js/js.translator/testData/typescript-export/member-properties-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/member-properties-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/member-properties-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/member-properties/tsconfig.json b/js/js.translator/testData/typescript-export/member-properties/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/member-properties/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/methods-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/methods-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/methods-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/methods/tsconfig.json b/js/js.translator/testData/typescript-export/methods/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/methods/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/namespaces-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/namespaces-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/namespaces-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/namespaces/tsconfig.json b/js/js.translator/testData/typescript-export/namespaces/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/namespaces/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/not-exported-declarations-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/not-exported-declarations/tsconfig.json b/js/js.translator/testData/typescript-export/not-exported-declarations/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/not-exported-declarations/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/objects-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/objects-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/objects-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/objects/tsconfig.json b/js/js.translator/testData/typescript-export/objects/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/objects/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/primitives-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/primitives-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/primitives-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/primitives/tsconfig.json b/js/js.translator/testData/typescript-export/primitives/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/primitives/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/private-primary-constructor/tsconfig.json b/js/js.translator/testData/typescript-export/private-primary-constructor/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/private-primary-constructor/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/properties-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/properties-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/properties-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/properties/tsconfig.json b/js/js.translator/testData/typescript-export/properties/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/properties/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/regular-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/regular-classes-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/regular-classes-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/regular-classes/tsconfig.json b/js/js.translator/testData/typescript-export/regular-classes/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/regular-classes/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/sealed-classes-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/sealed-classes/tsconfig.json b/js/js.translator/testData/typescript-export/sealed-classes/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/sealed-classes/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/selective-export/tsconfig.json b/js/js.translator/testData/typescript-export/selective-export/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/selective-export/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/strict-implicit-export/tsconfig.json b/js/js.translator/testData/typescript-export/strict-implicit-export/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/strict-implicit-export/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/visibility-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/visibility-in-exported-file/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/visibility-in-exported-file/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/visibility/tsconfig.json b/js/js.translator/testData/typescript-export/visibility/tsconfig.json deleted file mode 100644 index 17612c56c9d..00000000000 --- a/js/js.translator/testData/typescript-export/visibility/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": [ "./*" ], - "extends": "../common.tsconfig.json" -} \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/wasm/common.tsconfig.json b/js/js.translator/testData/typescript-export/wasm/common.tsconfig.json new file mode 100644 index 00000000000..a465e050df7 --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/common.tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../common.tsconfig.json", + "compilerOptions": { + "target": "ES2020", + "module": "ES2020" + } +} \ No newline at end of file diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.kt b/js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations.kt similarity index 84% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.kt rename to js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations.kt index f28fb2bf943..8faee24d461 100644 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.kt +++ b/js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations.kt @@ -1,5 +1,3 @@ -// CHECK_TYPESCRIPT_DECLARATIONS -// TARGET_BACKEND: WASM // MODULE: main // FILE: first.kt @@ -52,9 +50,3 @@ fun getResultInternal(): Result = js("({})") @JsExport fun getResult(): Result = getResultInternal() - -// FILE: entry.mjs - -import { getResult } from "./index.mjs"; - -if (JSON.stringify(getResult()) != "{}") throw new Error("Unexpected result") \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations__main.ts b/js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations__main.ts new file mode 100644 index 00000000000..7f836efac7b --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations__main.ts @@ -0,0 +1,3 @@ +import { getResult } from "./index.mjs"; + +if (JSON.stringify(getResult()) != "{}") throw new Error("Unexpected result") \ No newline at end of file diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.d.ts b/js/js.translator/testData/typescript-export/wasm/externalDeclarations/index.d.mts similarity index 99% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.d.ts rename to js/js.translator/testData/typescript-export/wasm/externalDeclarations/index.d.mts index 4bfb2fc3dfa..32adb88cf51 100644 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.d.ts +++ b/js/js.translator/testData/typescript-export/wasm/externalDeclarations/index.d.mts @@ -45,4 +45,4 @@ declare namespace not.exported { const MentionedParent: { get value(): string; }; -} \ No newline at end of file +} diff --git a/js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/wasm/externalDeclarations/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/abstract-classes-in-exported-file/tsconfig.json rename to js/js.translator/testData/typescript-export/wasm/externalDeclarations/tsconfig.json diff --git a/js/js.translator/testData/typescript-export/wasm/generics/generics.kt b/js/js.translator/testData/typescript-export/wasm/generics/generics.kt new file mode 100644 index 00000000000..55b9381c3f5 --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/generics/generics.kt @@ -0,0 +1,28 @@ +// MODULE: main + +// FILE: generics.kt +@JsExport +fun simple(x: T): T = x + +@JsExport +fun second(a: A, b: B): B = b + +@JsExport +fun simpleWithConstraint(x: T): T = x + +external interface Foo : JsAny { + val foo: T +} + +external interface Bar : JsAny { + val bar: JsString +} + +external object Baz : JsAny { + val baz: JsBoolean +} + +fun getBaz(x: Foo): JsAny = js("({ baz: x.foo > 0n })") + +@JsExport +fun complexConstraint(x: A): B where A: Foo, A: Bar, B: Baz = getBaz(x).unsafeCast() \ No newline at end of file diff --git a/js/js.translator/testData/typescript-export/wasm/generics/generics__main.ts b/js/js.translator/testData/typescript-export/wasm/generics/generics__main.ts new file mode 100644 index 00000000000..1c23981a521 --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/generics/generics__main.ts @@ -0,0 +1,6 @@ +import {complexConstraint, second, simple, simpleWithConstraint} from "./index.mjs"; + +if (simple("OK") != "OK") throw new Error("Unexpected result from `simple` function") +if (second(1, "OK") != "OK") throw new Error("Unexpected result from `second` function") +if (simpleWithConstraint(42) != 42) throw new Error("Unexpected result from `simpleConstraint` function") +if (JSON.stringify(complexConstraint({ foo: 1n, bar: "bar" })) != "{\"baz\":true}") throw new Error("Unexpected result from `complexConstraint` function") diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.d.ts b/js/js.translator/testData/typescript-export/wasm/generics/index.d.mts similarity index 100% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.d.ts rename to js/js.translator/testData/typescript-export/wasm/generics/index.d.mts diff --git a/js/js.translator/testData/typescript-export/abstract-classes/tsconfig.json b/js/js.translator/testData/typescript-export/wasm/generics/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/abstract-classes/tsconfig.json rename to js/js.translator/testData/typescript-export/wasm/generics/tsconfig.json diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.d.ts b/js/js.translator/testData/typescript-export/wasm/jsPrimitives/index.d.mts similarity index 100% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.d.ts rename to js/js.translator/testData/typescript-export/wasm/jsPrimitives/index.d.mts diff --git a/js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives.kt b/js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives.kt new file mode 100644 index 00000000000..65a529a8893 --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives.kt @@ -0,0 +1,32 @@ +// MODULE: main +// FILE: jsPrimitives.kt + +@JsExport +fun produceBoolean(): JsBoolean = true.toJsBoolean() + +@JsExport +fun produceNumber(): JsNumber = Int.MAX_VALUE.toJsNumber() + +@JsExport +fun produceBigInt(): JsBigInt = Long.MAX_VALUE.toJsBigInt() + +@JsExport +fun produceString(): JsString = "OK".toJsString() + +@JsExport +fun produceAny(): JsAny = 42.toJsNumber() + +@JsExport +fun consumeBoolean(x: JsBoolean): String = x.toBoolean().toString() + +@JsExport +fun consumeNumber(x: JsNumber): String = x.toInt().toString() + +@JsExport +fun consumeBigInt(x: JsBigInt): String = x.toLong().toString() + +@JsExport +fun consumeString(x: JsString): String = x.toString() + +@JsExport +fun consumeAny(x: JsAny): String = x.toString() \ No newline at end of file diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.kt b/js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives__main.ts similarity index 54% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.kt rename to js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives__main.ts index a17cd759841..46b32a70fc9 100644 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.kt +++ b/js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives__main.ts @@ -1,51 +1,14 @@ -// CHECK_TYPESCRIPT_DECLARATIONS -// TARGET_BACKEND: WASM -// MODULE: main -// FILE: jsPrimitives.kt - -@JsExport -fun produceBoolean(): JsBoolean = true.toJsBoolean() - -@JsExport -fun produceNumber(): JsNumber = Int.MAX_VALUE.toJsNumber() - -@JsExport -fun produceBigInt(): JsBigInt = Long.MAX_VALUE.toJsBigInt() - -@JsExport -fun produceString(): JsString = "OK".toJsString() - -@JsExport -fun produceAny(): JsAny = 42.toJsNumber() - -@JsExport -fun consumeBoolean(x: JsBoolean): String = x.toBoolean().toString() - -@JsExport -fun consumeNumber(x: JsNumber): String = x.toInt().toString() - -@JsExport -fun consumeBigInt(x: JsBigInt): String = x.toLong().toString() - -@JsExport -fun consumeString(x: JsString): String = x.toString() - -@JsExport -fun consumeAny(x: JsAny): String = x.toString() - -// FILE: entry.mjs - import { - produceBoolean, - produceNumber, - produceBigInt, - produceString, - produceAny, + consumeAny, + consumeBigInt, consumeBoolean, consumeNumber, - consumeBigInt, - consumeAny -} from "./index.mjs" + produceAny, + produceBigInt, + produceBoolean, + produceNumber, + produceString +} from "./index.mjs"; // PRODUCING if (!produceBoolean()) throw new Error("Unexpected value was returned from the `produceBoolean` function") @@ -58,4 +21,4 @@ if (produceAny() != 42) throw new Error("Unexpected value was returned from the if (consumeBoolean(false) != "false") throw new Error("Unexpected value was returned from the `consumeBoolean` function") if (consumeNumber(-2147483648) != "-2147483648") throw new Error("Unexpected value was returned from the `consumeNumber` function") if (consumeBigInt(-9223372036854775808n) != "-9223372036854775808") throw new Error("Unexpected value was returned from the `consumeBigInt` function") -if (consumeAny(24) != 24) throw new Error("Unexpected value was returned from the `consumeAny` function") +if (consumeAny(24) != "24") throw new Error("Unexpected value was returned from the `consumeAny` function") diff --git a/js/js.translator/testData/typescript-export/collections-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/wasm/jsPrimitives/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/collections-in-exported-file/tsconfig.json rename to js/js.translator/testData/typescript-export/wasm/jsPrimitives/tsconfig.json diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.d.ts b/js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/index.d.mts similarity index 100% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.d.ts rename to js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/index.d.mts diff --git a/js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives.kt b/js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives.kt new file mode 100644 index 00000000000..f18a535c066 --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives.kt @@ -0,0 +1,32 @@ +// MODULE: main +// FILE: nullableJsPrimitives.kt + +@JsExport +fun produceBoolean(): JsBoolean? = true.toJsBoolean() + +@JsExport +fun produceNumber(): JsNumber? = Int.MAX_VALUE.toJsNumber() + +@JsExport +fun produceBigInt(): JsBigInt? = Long.MAX_VALUE.toJsBigInt() + +@JsExport +fun produceString(): JsString? = "OK".toJsString() + +@JsExport +fun produceAny(): JsAny? = 42.toJsNumber() + +@JsExport +fun consumeBoolean(x: JsBoolean?): String? = x?.toBoolean()?.toString() + +@JsExport +fun consumeNumber(x: JsNumber?): String? = x?.toInt()?.toString() + +@JsExport +fun consumeBigInt(x: JsBigInt?): String? = x?.toLong()?.toString() + +@JsExport +fun consumeString(x: JsString?): String? = x?.toString() + +@JsExport +fun consumeAny(x: JsAny?): String? = x?.toString() diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.kt b/js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives__main.ts similarity index 54% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.kt rename to js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives__main.ts index 1bf1427cfa5..46b32a70fc9 100644 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.kt +++ b/js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives__main.ts @@ -1,51 +1,14 @@ -// CHECK_TYPESCRIPT_DECLARATIONS -// TARGET_BACKEND: WASM -// MODULE: main -// FILE: nullableJsPrimitives.kt - -@JsExport -fun produceBoolean(): JsBoolean? = true.toJsBoolean() - -@JsExport -fun produceNumber(): JsNumber? = Int.MAX_VALUE.toJsNumber() - -@JsExport -fun produceBigInt(): JsBigInt? = Long.MAX_VALUE.toJsBigInt() - -@JsExport -fun produceString(): JsString? = "OK".toJsString() - -@JsExport -fun produceAny(): JsAny? = 42.toJsNumber() - -@JsExport -fun consumeBoolean(x: JsBoolean?): String? = x?.toBoolean()?.toString() - -@JsExport -fun consumeNumber(x: JsNumber?): String? = x?.toInt()?.toString() - -@JsExport -fun consumeBigInt(x: JsBigInt?): String? = x?.toLong()?.toString() - -@JsExport -fun consumeString(x: JsString?): String? = x?.toString() - -@JsExport -fun consumeAny(x: JsAny?): String? = x?.toString() - -// FILE: entry.mjs - import { - produceBoolean, - produceNumber, - produceBigInt, - produceString, - produceAny, + consumeAny, + consumeBigInt, consumeBoolean, consumeNumber, - consumeBigInt, - consumeAny, -} from "./index.mjs" + produceAny, + produceBigInt, + produceBoolean, + produceNumber, + produceString +} from "./index.mjs"; // PRODUCING if (!produceBoolean()) throw new Error("Unexpected value was returned from the `produceBoolean` function") @@ -58,4 +21,4 @@ if (produceAny() != 42) throw new Error("Unexpected value was returned from the if (consumeBoolean(false) != "false") throw new Error("Unexpected value was returned from the `consumeBoolean` function") if (consumeNumber(-2147483648) != "-2147483648") throw new Error("Unexpected value was returned from the `consumeNumber` function") if (consumeBigInt(-9223372036854775808n) != "-9223372036854775808") throw new Error("Unexpected value was returned from the `consumeBigInt` function") -if (consumeAny(24) != 24) throw new Error("Unexpected value was returned from the `consumeAny` function") +if (consumeAny(24) != "24") throw new Error("Unexpected value was returned from the `consumeAny` function") diff --git a/js/js.translator/testData/typescript-export/collections/tsconfig.json b/js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/collections/tsconfig.json rename to js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/tsconfig.json diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.d.ts b/js/js.translator/testData/typescript-export/wasm/nullablePrimitives/index.d.mts similarity index 100% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.d.ts rename to js/js.translator/testData/typescript-export/wasm/nullablePrimitives/index.d.mts diff --git a/js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives.kt b/js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives.kt new file mode 100644 index 00000000000..27a00be7b9b --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives.kt @@ -0,0 +1,50 @@ +// MODULE: main +// FILE: nullablePrimitives.kt + +@JsExport +fun produceBoolean(): Boolean? = true + +@JsExport +fun produceByte(): Byte? = Byte.MAX_VALUE + +@JsExport +fun produceShort(): Short? = Short.MAX_VALUE + +@JsExport +fun produceInt(): Int? = Int.MAX_VALUE + +@JsExport +fun produceLong(): Long? = Long.MAX_VALUE + +@JsExport +fun produceChar(): Char? = 'a' + +@JsExport +fun produceString(): String? = "OK" + +@JsExport +fun produceFunction(): (() -> Int)? = { 42 } + +@JsExport +fun consumeBoolean(x: Boolean?): String? = x?.toString() + +@JsExport +fun consumeByte(x: Byte?): String? = x?.toString() + +@JsExport +fun consumeShort(x: Short?): String? = x?.toString() + +@JsExport +fun consumeInt(x: Int?): String? = x?.toString() + +@JsExport +fun consumeLong(x: Long?): String? = x?.toString() + +@JsExport +fun consumeChar(x: Char?): String? = x?.toString() + +@JsExport +fun consumeString(x: String?): String? = x + +@JsExport +fun consumeFunction(fn: ((String) -> Int)?): Int? = fn?.invoke("42") diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.kt b/js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives__main.ts similarity index 56% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.kt rename to js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives__main.ts index 6a67679a60e..0c165afb41a 100644 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.kt +++ b/js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives__main.ts @@ -1,76 +1,21 @@ -// CHECK_TYPESCRIPT_DECLARATIONS -// TARGET_BACKEND: WASM -// MODULE: main -// FILE: nullablePrimitives.kt - -@JsExport -fun produceBoolean(): Boolean? = true - -@JsExport -fun produceByte(): Byte? = Byte.MAX_VALUE - -@JsExport -fun produceShort(): Short? = Short.MAX_VALUE - -@JsExport -fun produceInt(): Int? = Int.MAX_VALUE - -@JsExport -fun produceLong(): Long? = Long.MAX_VALUE - -@JsExport -fun produceChar(): Char? = 'a' - -@JsExport -fun produceString(): String? = "OK" - -@JsExport -fun produceFunction(): (() -> Int)? = { 42 } - -@JsExport -fun consumeBoolean(x: Boolean?): String? = x?.toString() - -@JsExport -fun consumeByte(x: Byte?): String? = x?.toString() - -@JsExport -fun consumeShort(x: Short?): String? = x?.toString() - -@JsExport -fun consumeInt(x: Int?): String? = x?.toString() - -@JsExport -fun consumeLong(x: Long?): String? = x?.toString() - -@JsExport -fun consumeChar(x: Char?): String? = x?.toString() - -@JsExport -fun consumeString(x: String?): String? = x - -@JsExport -fun consumeFunction(fn: ((String) -> Int)?): Int? = fn?.invoke("42") - -// FILE: entry.mjs - import { - produceBoolean, - produceByte, - produceShort, - produceInt, - produceLong, - produceChar, - produceString, - produceFunction, consumeBoolean, consumeByte, - consumeShort, + consumeChar, + consumeFunction, consumeInt, consumeLong, - consumeChar, + consumeShort, consumeString, - consumeFunction, -} from "./index.mjs" + produceBoolean, + produceByte, + produceChar, + produceFunction, + produceInt, + produceLong, + produceShort, + produceString, +} from "./index.mjs"; // PRODUCING if (!produceBoolean()) throw new Error("Unexpected value was returned from the `produceBoolean` function") @@ -78,9 +23,9 @@ if (produceByte() != 127) throw new Error("Unexpected value was returned from th if (produceShort() != 32767) throw new Error("Unexpected value was returned from the `produceShort` function") if (produceInt() != 2147483647) throw new Error("Unexpected value was returned from the `produceInt` function") if (produceLong() != 9223372036854775807n) throw new Error("Unexpected value was returned from the `produceLong` function") -if (String.fromCharCode(produceChar()) != "a") throw new Error("Unexpected value was returned from the `produceChar` function") +if (String.fromCharCode(produceChar() ?? -1) != "a") throw new Error("Unexpected value was returned from the `produceChar` function") if (produceString() != "OK") throw new Error("Unexpected value was returned from the `produceString` function") -if (produceFunction()() != 42) throw new Error("Unexpected value was returned from the `produceFunction` function") +if (produceFunction()?.() != 42) throw new Error("Unexpected value was returned from the `produceFunction` function") // CONSUMPTION if (consumeBoolean(false) != "false") throw new Error("Unexpected value was returned from the `consumeBoolean` function") @@ -88,6 +33,6 @@ if (consumeByte(-128) != "-128") throw new Error("Unexpected value was returned if (consumeShort(-32768) != "-32768") throw new Error("Unexpected value was returned from the `consumeShort` function") if (consumeInt(-2147483648) != "-2147483648") throw new Error("Unexpected value was returned from the `consumeInt` function") if (consumeLong(-9223372036854775808n) != "-9223372036854775808") throw new Error("Unexpected value was returned from the `consumeLong` function") -if (consumeChar("b".charCodeAt()) != "b") throw new Error("Unexpected value was returned from the `consumeChar` function") +if (consumeChar("b".charCodeAt(0)) != "b") throw new Error("Unexpected value was returned from the `consumeChar` function") if (consumeString("🙂") != "🙂") throw new Error("Unexpected value was returned from the `consumeString` function") if (consumeFunction(parseInt) != 42) throw new Error("Unexpected value was returned from the `consumeFunction` function") diff --git a/js/js.translator/testData/typescript-export/constructors-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/wasm/nullablePrimitives/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/constructors-in-exported-file/tsconfig.json rename to js/js.translator/testData/typescript-export/wasm/nullablePrimitives/tsconfig.json diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.d.ts b/js/js.translator/testData/typescript-export/wasm/nullableUnsigned/index.d.mts similarity index 100% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.d.ts rename to js/js.translator/testData/typescript-export/wasm/nullableUnsigned/index.d.mts diff --git a/js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged.kt b/js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged.kt new file mode 100644 index 00000000000..4c862377cac --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged.kt @@ -0,0 +1,32 @@ +// MODULE: main +// FILE: nullableUnsigned.kt + +@JsExport +fun produceUByte(): UByte? = UByte.MAX_VALUE + +@JsExport +fun produceUShort(): UShort? = UShort.MAX_VALUE + +@JsExport +fun produceUInt(): UInt? = UInt.MAX_VALUE + +@JsExport +fun produceULong(): ULong? = ULong.MAX_VALUE + +@JsExport +fun produceFunction(): () -> UInt? = ::produceUInt + +@JsExport +fun consumeUByte(x: UByte?): String? = x?.toString() + +@JsExport +fun consumeUShort(x: UShort?): String? = x?.toString() + +@JsExport +fun consumeUInt(x: UInt?): String? = x?.toString() + +@JsExport +fun consumeULong(x: ULong?): String? = x?.toString() + +@JsExport +fun consumeFunction(fn: (String) -> UInt?): UInt? = fn("42") diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.kt b/js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged__main.ts similarity index 64% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.kt rename to js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged__main.ts index 8af348aff24..b00f2872d94 100644 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.kt +++ b/js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged__main.ts @@ -1,52 +1,15 @@ -// CHECK_TYPESCRIPT_DECLARATIONS -// TARGET_BACKEND: WASM -// MODULE: main -// FILE: nullableUnsigned.kt - -@JsExport -fun produceUByte(): UByte? = UByte.MAX_VALUE - -@JsExport -fun produceUShort(): UShort? = UShort.MAX_VALUE - -@JsExport -fun produceUInt(): UInt? = UInt.MAX_VALUE - -@JsExport -fun produceULong(): ULong? = ULong.MAX_VALUE - -@JsExport -fun produceFunction(): () -> UInt? = ::produceUInt - -@JsExport -fun consumeUByte(x: UByte?): String? = x?.toString() - -@JsExport -fun consumeUShort(x: UShort?): String? = x?.toString() - -@JsExport -fun consumeUInt(x: UInt?): String? = x?.toString() - -@JsExport -fun consumeULong(x: ULong?): String? = x?.toString() - -@JsExport -fun consumeFunction(fn: (String) -> UInt?): UInt? = fn("42") - -// FILE: entry.mjs - import { - produceUByte, - produceUShort, - produceUInt, - produceULong, - produceFunction, + consumeFunction, consumeUByte, - consumeUShort, consumeUInt, consumeULong, - consumeFunction, -} from "./index.mjs" + consumeUShort, + produceFunction, + produceUByte, + produceUInt, + produceULong, + produceUShort +} from "./index.mjs"; // PRODUCING if (produceUByte() != 255) throw new Error("Unexpected value was returned from the `produceUByte` function") diff --git a/js/js.translator/testData/typescript-export/constructors/tsconfig.json b/js/js.translator/testData/typescript-export/wasm/nullableUnsigned/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/constructors/tsconfig.json rename to js/js.translator/testData/typescript-export/wasm/nullableUnsigned/tsconfig.json diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.d.ts b/js/js.translator/testData/typescript-export/wasm/primitives/index.d.mts similarity index 100% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.d.ts rename to js/js.translator/testData/typescript-export/wasm/primitives/index.d.mts diff --git a/js/js.translator/testData/typescript-export/wasm/primitives/primitives.kt b/js/js.translator/testData/typescript-export/wasm/primitives/primitives.kt new file mode 100644 index 00000000000..44f02f60582 --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/primitives/primitives.kt @@ -0,0 +1,60 @@ +// MODULE: main +// FILE: primitives.kt + +@JsExport +fun produceBoolean(): Boolean = true + +@JsExport +fun produceByte(): Byte = Byte.MAX_VALUE + +@JsExport +fun produceShort(): Short = Short.MAX_VALUE + +@JsExport +fun produceInt(): Int = Int.MAX_VALUE + +@JsExport +fun produceLong(): Long = Long.MAX_VALUE + +@JsExport +fun produceChar(): Char = 'a' + +@JsExport +fun produceString(): String = "OK" + +private var state = "INITIAL" + +@JsExport +fun getState(): String = state + +@JsExport +fun mutateState() { + state = "MUTATED" +} + +@JsExport +fun produceFunction(): () -> Int = ::produceInt + +@JsExport +fun consumeBoolean(x: Boolean): String = x.toString() + +@JsExport +fun consumeByte(x: Byte): String = x.toString() + +@JsExport +fun consumeShort(x: Short): String = x.toString() + +@JsExport +fun consumeInt(x: Int): String = x.toString() + +@JsExport +fun consumeLong(x: Long): String = x.toString() + +@JsExport +fun consumeChar(x: Char): String = x.toString() + +@JsExport +fun consumeString(x: String): String = x + +@JsExport +fun consumeFunction(fn: (String) -> Int): Int = fn("42") diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.kt b/js/js.translator/testData/typescript-export/wasm/primitives/primitives__main.ts similarity index 65% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.kt rename to js/js.translator/testData/typescript-export/wasm/primitives/primitives__main.ts index db5a19b7561..e8dead0cc98 100644 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.kt +++ b/js/js.translator/testData/typescript-export/wasm/primitives/primitives__main.ts @@ -1,87 +1,22 @@ -// CHECK_TYPESCRIPT_DECLARATIONS -// TARGET_BACKEND: WASM -// MODULE: main -// FILE: primitives.kt - -@JsExport -fun produceBoolean(): Boolean = true - -@JsExport -fun produceByte(): Byte = Byte.MAX_VALUE - -@JsExport -fun produceShort(): Short = Short.MAX_VALUE - -@JsExport -fun produceInt(): Int = Int.MAX_VALUE - -@JsExport -fun produceLong(): Long = Long.MAX_VALUE - -@JsExport -fun produceChar(): Char = 'a' - -@JsExport -fun produceString(): String = "OK" - -private var state = "INITIAL" - -@JsExport -fun getState(): String = state - -@JsExport -fun mutateState() { - state = "MUTATED" -} - -@JsExport -fun produceFunction(): () -> Int = ::produceInt - -@JsExport -fun consumeBoolean(x: Boolean): String = x.toString() - -@JsExport -fun consumeByte(x: Byte): String = x.toString() - -@JsExport -fun consumeShort(x: Short): String = x.toString() - -@JsExport -fun consumeInt(x: Int): String = x.toString() - -@JsExport -fun consumeLong(x: Long): String = x.toString() - -@JsExport -fun consumeChar(x: Char): String = x.toString() - -@JsExport -fun consumeString(x: String): String = x - -@JsExport -fun consumeFunction(fn: (String) -> Int): Int = fn("42") - -// FILE: entry.mjs - import { - produceBoolean, - produceByte, - produceShort, - produceInt, - produceLong, - produceChar, - produceString, - getState, - mutateState, - produceFunction, consumeBoolean, consumeByte, - consumeShort, + consumeChar, + consumeFunction, consumeInt, consumeLong, - consumeChar, + consumeShort, consumeString, - consumeFunction, + getState, + mutateState, + produceBoolean, + produceByte, + produceChar, + produceFunction, + produceInt, + produceLong, + produceShort, + produceString } from "./index.mjs" // PRODUCING @@ -103,6 +38,6 @@ if (consumeByte(-128) != "-128") throw new Error("Unexpected value was returned if (consumeShort(-32768) != "-32768") throw new Error("Unexpected value was returned from the `consumeShort` function") if (consumeInt(-2147483648) != "-2147483648") throw new Error("Unexpected value was returned from the `consumeInt` function") if (consumeLong(-9223372036854775808n) != "-9223372036854775808") throw new Error("Unexpected value was returned from the `consumeLong` function") -if (consumeChar("b".charCodeAt()) != "b") throw new Error("Unexpected value was returned from the `consumeChar` function") +if (consumeChar("b".charCodeAt(0)) != "b") throw new Error("Unexpected value was returned from the `consumeChar` function") if (consumeString("🙂") != "🙂") throw new Error("Unexpected value was returned from the `consumeString` function") if (consumeFunction(parseInt) != 42) throw new Error("Unexpected value was returned from the `consumeFunction` function") diff --git a/js/js.translator/testData/typescript-export/data-classes-in-exported-file/tsconfig.json b/js/js.translator/testData/typescript-export/wasm/primitives/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/data-classes-in-exported-file/tsconfig.json rename to js/js.translator/testData/typescript-export/wasm/primitives/tsconfig.json diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.d.ts b/js/js.translator/testData/typescript-export/wasm/unsigned/index.d.mts similarity index 100% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.d.ts rename to js/js.translator/testData/typescript-export/wasm/unsigned/index.d.mts diff --git a/js/js.translator/testData/typescript-export/data-classes/tsconfig.json b/js/js.translator/testData/typescript-export/wasm/unsigned/tsconfig.json similarity index 100% rename from js/js.translator/testData/typescript-export/data-classes/tsconfig.json rename to js/js.translator/testData/typescript-export/wasm/unsigned/tsconfig.json diff --git a/js/js.translator/testData/typescript-export/wasm/unsigned/unsinged.kt b/js/js.translator/testData/typescript-export/wasm/unsigned/unsinged.kt new file mode 100644 index 00000000000..b78581babf4 --- /dev/null +++ b/js/js.translator/testData/typescript-export/wasm/unsigned/unsinged.kt @@ -0,0 +1,32 @@ +// MODULE: main +// FILE: unsigned.kt + +@JsExport +fun produceUByte(): UByte = UByte.MAX_VALUE + +@JsExport +fun produceUShort(): UShort = UShort.MAX_VALUE + +@JsExport +fun produceUInt(): UInt = UInt.MAX_VALUE + +@JsExport +fun produceULong(): ULong = ULong.MAX_VALUE + +@JsExport +fun produceFunction(): () -> UInt = ::produceUInt + +@JsExport +fun consumeUByte(x: UByte): String = x.toString() + +@JsExport +fun consumeUShort(x: UShort): String = x.toString() + +@JsExport +fun consumeUInt(x: UInt): String = x.toString() + +@JsExport +fun consumeULong(x: ULong): String = x.toString() + +@JsExport +fun consumeFunction(fn: (String) -> UInt): UInt = fn("42") diff --git a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.kt b/js/js.translator/testData/typescript-export/wasm/unsigned/unsinged__main.ts similarity index 66% rename from compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.kt rename to js/js.translator/testData/typescript-export/wasm/unsigned/unsinged__main.ts index cbba81951d8..c99c7419357 100644 --- a/compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.kt +++ b/js/js.translator/testData/typescript-export/wasm/unsigned/unsinged__main.ts @@ -1,51 +1,14 @@ -// CHECK_TYPESCRIPT_DECLARATIONS -// TARGET_BACKEND: WASM -// MODULE: main -// FILE: unsigned.kt - -@JsExport -fun produceUByte(): UByte = UByte.MAX_VALUE - -@JsExport -fun produceUShort(): UShort = UShort.MAX_VALUE - -@JsExport -fun produceUInt(): UInt = UInt.MAX_VALUE - -@JsExport -fun produceULong(): ULong = ULong.MAX_VALUE - -@JsExport -fun produceFunction(): () -> UInt = ::produceUInt - -@JsExport -fun consumeUByte(x: UByte): String = x.toString() - -@JsExport -fun consumeUShort(x: UShort): String = x.toString() - -@JsExport -fun consumeUInt(x: UInt): String = x.toString() - -@JsExport -fun consumeULong(x: ULong): String = x.toString() - -@JsExport -fun consumeFunction(fn: (String) -> UInt): UInt = fn("42") - -// FILE: entry.mjs - import { - produceUByte, - produceUShort, - produceUInt, - produceULong, - produceFunction, + consumeFunction, consumeUByte, - consumeUShort, consumeUInt, consumeULong, - consumeFunction, + consumeUShort, + produceFunction, + produceUByte, + produceUInt, + produceULong, + produceUShort } from "./index.mjs" // PRODUCING diff --git a/repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/utils.kt b/repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/utils.kt new file mode 100644 index 00000000000..7839c5e8987 --- /dev/null +++ b/repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/utils.kt @@ -0,0 +1,29 @@ +/* + * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +import org.gradle.api.Project +import org.gradle.api.Task +import org.gradle.api.tasks.TaskContainer +import org.gradle.api.tasks.TaskProvider +import org.gradle.kotlin.dsl.RegisteringDomainObjectDelegateProviderWithAction +import org.gradle.kotlin.dsl.registering + +fun Project.parallel( + tasksToRun: List>, + beforeAll: TaskProvider<*>? = null, +): RegisteringDomainObjectDelegateProviderWithAction { + return tasks.registering { + tasksToRun.forEach { dependsOn(it) } + }.apply { + if (beforeAll != null) { + tasksToRun.forEach { + it.configure { + dependsOn(beforeAll) + } + } + } + } +} + diff --git a/wasm/wasm.tests/build.gradle.kts b/wasm/wasm.tests/build.gradle.kts index d5f03413747..65114cc95bf 100644 --- a/wasm/wasm.tests/build.gradle.kts +++ b/wasm/wasm.tests/build.gradle.kts @@ -1,10 +1,23 @@ import org.gradle.internal.os.OperatingSystem import java.net.URI +import com.github.gradle.node.npm.task.NpmTask import java.util.* plugins { kotlin("jvm") id("jps-compatible") + alias(libs.plugins.gradle.node) +} + +val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true + +node { + download.set(true) + version.set(nodejsVersion) + nodeProjectDir.set(layout.buildDirectory.dir("node")) + if (cacheRedirectorEnabled) { + distBaseUrl.set("https://cache-redirector.jetbrains.com/nodejs.org/dist") + } } repositories { @@ -116,6 +129,42 @@ fun Test.setupGradlePropertiesForwarding() { } } +val testDataDir = project(":js:js.translator").projectDir.resolve("testData") +val typescriptTestsDir = testDataDir.resolve("typescript-export") +val wasmTestDir = typescriptTestsDir.resolve("wasm") + +fun generateTypeScriptTestFor(dir: String): TaskProvider = tasks.register("generate-ts-for-$dir") { + val baseDir = wasmTestDir.resolve(dir) + val mainTsFile = fileTree(baseDir).files.find { it.name.endsWith("__main.ts") } ?: return@register + val mainJsFile = baseDir.resolve("${mainTsFile.nameWithoutExtension}.js") + + workingDir.set(testDataDir) + + inputs.file(mainTsFile) + outputs.file(mainJsFile) + outputs.upToDateWhen { mainJsFile.exists() } + + args.set(listOf("run", "generateTypeScriptTests", "--", "./typescript-export/wasm/$dir/tsconfig.json")) +} + +val installTsDependencies by task { + val packageLockFile = testDataDir.resolve("package-lock.json") + val nodeModules = testDataDir.resolve("node_modules") + inputs.file(testDataDir.resolve("package.json")) + outputs.file(packageLockFile) + outputs.upToDateWhen { nodeModules.exists() } + + workingDir.set(testDataDir) + args.set(listOf("install")) +} + +val generateTypeScriptTests by parallel( + beforeAll = installTsDependencies, + tasksToRun = wasmTestDir + .listFiles { it: File -> it.isDirectory } + .map { generateTypeScriptTestFor(it.name) } +) + val unzipJsShell by task { dependsOn(jsShell) from { @@ -163,10 +212,12 @@ fun Project.wasmProjectTest( wasmProjectTest("test") wasmProjectTest("testFir") { + dependsOn(generateTypeScriptTests) include("**/Fir*.class") } wasmProjectTest("testK1") { + dependsOn(generateTypeScriptTests) include("**/K1*.class") } diff --git a/wasm/wasm.tests/test/org/jetbrains/kotlin/generators/tests/GenerateWasmTests.kt b/wasm/wasm.tests/test/org/jetbrains/kotlin/generators/tests/GenerateWasmTests.kt index 50fdb4cd5e8..cbe346aeded 100644 --- a/wasm/wasm.tests/test/org/jetbrains/kotlin/generators/tests/GenerateWasmTests.kt +++ b/wasm/wasm.tests/test/org/jetbrains/kotlin/generators/tests/GenerateWasmTests.kt @@ -113,5 +113,15 @@ fun main(args: Array) { model("debug/stepping") } } + + testGroup("wasm/wasm.tests/tests-gen", "js/js.translator/testData", testRunnerMethodName = "runTest0") { + testClass { + model("typescript-export/wasm/") + } + + testClass { + model("typescript-export/wasm/") + } + } } } diff --git a/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/AbstractK1WasmTest.kt b/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/AbstractK1WasmTest.kt index 858675322da..4feb9e6c0a4 100644 --- a/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/AbstractK1WasmTest.kt +++ b/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/AbstractK1WasmTest.kt @@ -16,6 +16,7 @@ import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendFacade import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendOutputArtifact import org.jetbrains.kotlin.test.model.* import org.jetbrains.kotlin.test.services.EnvironmentConfigurator +import org.jetbrains.kotlin.test.services.configuration.JsEnvironmentConfigurator import org.jetbrains.kotlin.test.services.configuration.WasmEnvironmentConfiguratorJs import org.jetbrains.kotlin.wasm.test.converters.FirWasmKlibBackendFacade import org.jetbrains.kotlin.wasm.test.converters.WasmBackendFacade @@ -81,4 +82,28 @@ open class AbstractK1WasmSteppingTest : AbstractK1WasmTest( +WasmEnvironmentConfigurationDirectives.GENERATE_SOURCE_MAP } } -} \ No newline at end of file +} + +open class AbstractK1WasmTypeScriptExportTest : AbstractK1WasmTest( + "${JsEnvironmentConfigurator.TEST_DATA_DIR_PATH}/typescript-export/wasm/", + "typescript-export/" +) { + override fun configure(builder: TestConfigurationBuilder) { + super.configure(builder) + builder.defaultDirectives { + +WasmEnvironmentConfigurationDirectives.CHECK_TYPESCRIPT_DECLARATIONS + } + } +} + +open class AbstractFirWasmTypeScriptExportTest : AbstractK1WasmTest( + "${JsEnvironmentConfigurator.TEST_DATA_DIR_PATH}/typescript-export/wasm/", + "typescript-export/" +) { + override fun configure(builder: TestConfigurationBuilder) { + super.configure(builder) + builder.defaultDirectives { + +WasmEnvironmentConfigurationDirectives.CHECK_TYPESCRIPT_DECLARATIONS + } + } +} diff --git a/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/AbstractWasmArtifactsCollector.kt b/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/AbstractWasmArtifactsCollector.kt index e07dded57fa..b80d93b240e 100644 --- a/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/AbstractWasmArtifactsCollector.kt +++ b/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/AbstractWasmArtifactsCollector.kt @@ -56,6 +56,14 @@ abstract class AbstractWasmArtifactsCollector(testServices: TestServices) : Wasm mjsFiles += AdditionalFile(it.name, it.readText()) } + + originalFile.parentFile.resolve(originalFile.nameWithoutExtension + "__main${JavaScript.DOT_EXTENSION}") + .takeIf { it.exists() } + ?.let { + entryMjs = it.name + mjsFiles += AdditionalFile(it.name, it.readText()) + } + return JsArtifacts(entryMjs, jsFiles, mjsFiles) } diff --git a/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/WasmDtsHandler.kt b/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/WasmDtsHandler.kt index 2df73c75daf..46ee83f5cca 100644 --- a/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/WasmDtsHandler.kt +++ b/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/WasmDtsHandler.kt @@ -21,8 +21,9 @@ class WasmDtsHandler(testServices: TestServices) : WasmBinaryArtifactHandler(tes val globalDirectives = testServices.moduleStructure.allDirectives if (WasmEnvironmentConfigurationDirectives.CHECK_TYPESCRIPT_DECLARATIONS !in globalDirectives) return - val referenceDtsFile = module.files.first().originalFile.withReplacedExtensionOrNull(".kt", ".d.ts") - ?: error("Can't find reference .d.ts file") + val referenceDtsFile = module.files.first().originalFile.parentFile + .resolve("index.d.mts") + .run { takeIf { it.exists() } ?: error("'${path}' doesn't exist") } val generatedDts = info.compilerResult.dts ?: error("Can't find generated .d.ts file") diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenInteropTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenInteropTestGenerated.java index a325c8556fb..ffc9efe1725 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenInteropTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenInteropTestGenerated.java @@ -9,7 +9,6 @@ import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import java.io.File; @@ -186,62 +185,4 @@ public class FirWasmJsCodegenInteropTestGenerated extends AbstractFirWasmJsCodeg public void testWasmImport() { runTest("compiler/testData/codegen/boxWasmJsInterop/wasmImport.kt"); } - - @Nested - @TestMetadata("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations") - @TestDataPath("$PROJECT_ROOT") - public class TypeScriptDeclarations { - @Test - public void testAllFilesPresentInTypeScriptDeclarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); - } - - @Test - @TestMetadata("externalDeclarations.kt") - public void testExternalDeclarations() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.kt"); - } - - @Test - @TestMetadata("generics.kt") - public void testGenerics() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.kt"); - } - - @Test - @TestMetadata("jsPrimitives.kt") - public void testJsPrimitives() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.kt"); - } - - @Test - @TestMetadata("nullableJsPrimitives.kt") - public void testNullableJsPrimitives() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.kt"); - } - - @Test - @TestMetadata("nullablePrimitives.kt") - public void testNullablePrimitives() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.kt"); - } - - @Test - @TestMetadata("nullableUnisnged.kt") - public void testNullableUnisnged() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.kt"); - } - - @Test - @TestMetadata("primitives.kt") - public void testPrimitives() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.kt"); - } - - @Test - @TestMetadata("unisnged.kt") - public void testUnisnged() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.kt"); - } - } } diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmTypeScriptExportTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmTypeScriptExportTestGenerated.java new file mode 100644 index 00000000000..150e4ee4912 --- /dev/null +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmTypeScriptExportTestGenerated.java @@ -0,0 +1,155 @@ +/* + * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.wasm.test; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateWasmTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@TestMetadata("js/js.translator/testData/typescript-export/wasm") +@TestDataPath("$PROJECT_ROOT") +public class FirWasmTypeScriptExportTestGenerated extends AbstractFirWasmTypeScriptExportTest { + @Test + public void testAllFilesPresentInWasm() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/externalDeclarations") + @TestDataPath("$PROJECT_ROOT") + public class ExternalDeclarations { + @Test + public void testAllFilesPresentInExternalDeclarations() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/externalDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("externalDeclarations.kt") + public void testExternalDeclarations() { + runTest("js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/generics") + @TestDataPath("$PROJECT_ROOT") + public class Generics { + @Test + public void testAllFilesPresentInGenerics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/generics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("generics.kt") + public void testGenerics() { + runTest("js/js.translator/testData/typescript-export/wasm/generics/generics.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/jsPrimitives") + @TestDataPath("$PROJECT_ROOT") + public class JsPrimitives { + @Test + public void testAllFilesPresentInJsPrimitives() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/jsPrimitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("jsPrimitives.kt") + public void testJsPrimitives() { + runTest("js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives") + @TestDataPath("$PROJECT_ROOT") + public class NullableJsPrimitives { + @Test + public void testAllFilesPresentInNullableJsPrimitives() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("nullableJsPrimitives.kt") + public void testNullableJsPrimitives() { + runTest("js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/nullablePrimitives") + @TestDataPath("$PROJECT_ROOT") + public class NullablePrimitives { + @Test + public void testAllFilesPresentInNullablePrimitives() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/nullablePrimitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("nullablePrimitives.kt") + public void testNullablePrimitives() { + runTest("js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/nullableUnsigned") + @TestDataPath("$PROJECT_ROOT") + public class NullableUnsigned { + @Test + public void testAllFilesPresentInNullableUnsigned() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/nullableUnsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("nullableUnsinged.kt") + public void testNullableUnsinged() { + runTest("js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/primitives") + @TestDataPath("$PROJECT_ROOT") + public class Primitives { + @Test + public void testAllFilesPresentInPrimitives() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/primitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("primitives.kt") + public void testPrimitives() { + runTest("js/js.translator/testData/typescript-export/wasm/primitives/primitives.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/unsigned") + @TestDataPath("$PROJECT_ROOT") + public class Unsigned { + @Test + public void testAllFilesPresentInUnsigned() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("unsinged.kt") + public void testUnsinged() { + runTest("js/js.translator/testData/typescript-export/wasm/unsigned/unsinged.kt"); + } + } +} diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenWasmJsInteropTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenWasmJsInteropTestGenerated.java index a03b7316551..4191a35804e 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenWasmJsInteropTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenWasmJsInteropTestGenerated.java @@ -9,7 +9,6 @@ import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import java.io.File; @@ -186,62 +185,4 @@ public class K1WasmCodegenWasmJsInteropTestGenerated extends AbstractK1WasmCodeg public void testWasmImport() { runTest("compiler/testData/codegen/boxWasmJsInterop/wasmImport.kt"); } - - @Nested - @TestMetadata("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations") - @TestDataPath("$PROJECT_ROOT") - public class TypeScriptDeclarations { - @Test - public void testAllFilesPresentInTypeScriptDeclarations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); - } - - @Test - @TestMetadata("externalDeclarations.kt") - public void testExternalDeclarations() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/externalDeclarations.kt"); - } - - @Test - @TestMetadata("generics.kt") - public void testGenerics() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/generics.kt"); - } - - @Test - @TestMetadata("jsPrimitives.kt") - public void testJsPrimitives() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/jsPrimitives.kt"); - } - - @Test - @TestMetadata("nullableJsPrimitives.kt") - public void testNullableJsPrimitives() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableJsPrimitives.kt"); - } - - @Test - @TestMetadata("nullablePrimitives.kt") - public void testNullablePrimitives() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullablePrimitives.kt"); - } - - @Test - @TestMetadata("nullableUnisnged.kt") - public void testNullableUnisnged() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/nullableUnisnged.kt"); - } - - @Test - @TestMetadata("primitives.kt") - public void testPrimitives() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/primitives.kt"); - } - - @Test - @TestMetadata("unisnged.kt") - public void testUnisnged() { - runTest("compiler/testData/codegen/boxWasmJsInterop/typeScriptDeclarations/unisnged.kt"); - } - } } diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmTypeScriptExportTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmTypeScriptExportTestGenerated.java new file mode 100644 index 00000000000..efc87552063 --- /dev/null +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmTypeScriptExportTestGenerated.java @@ -0,0 +1,155 @@ +/* + * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.wasm.test; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateWasmTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@TestMetadata("js/js.translator/testData/typescript-export/wasm") +@TestDataPath("$PROJECT_ROOT") +public class K1WasmTypeScriptExportTestGenerated extends AbstractK1WasmTypeScriptExportTest { + @Test + public void testAllFilesPresentInWasm() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/externalDeclarations") + @TestDataPath("$PROJECT_ROOT") + public class ExternalDeclarations { + @Test + public void testAllFilesPresentInExternalDeclarations() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/externalDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("externalDeclarations.kt") + public void testExternalDeclarations() { + runTest("js/js.translator/testData/typescript-export/wasm/externalDeclarations/externalDeclarations.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/generics") + @TestDataPath("$PROJECT_ROOT") + public class Generics { + @Test + public void testAllFilesPresentInGenerics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/generics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("generics.kt") + public void testGenerics() { + runTest("js/js.translator/testData/typescript-export/wasm/generics/generics.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/jsPrimitives") + @TestDataPath("$PROJECT_ROOT") + public class JsPrimitives { + @Test + public void testAllFilesPresentInJsPrimitives() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/jsPrimitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("jsPrimitives.kt") + public void testJsPrimitives() { + runTest("js/js.translator/testData/typescript-export/wasm/jsPrimitives/jsPrimitives.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives") + @TestDataPath("$PROJECT_ROOT") + public class NullableJsPrimitives { + @Test + public void testAllFilesPresentInNullableJsPrimitives() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("nullableJsPrimitives.kt") + public void testNullableJsPrimitives() { + runTest("js/js.translator/testData/typescript-export/wasm/nullableJsPrimitives/nullableJsPrimitives.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/nullablePrimitives") + @TestDataPath("$PROJECT_ROOT") + public class NullablePrimitives { + @Test + public void testAllFilesPresentInNullablePrimitives() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/nullablePrimitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("nullablePrimitives.kt") + public void testNullablePrimitives() { + runTest("js/js.translator/testData/typescript-export/wasm/nullablePrimitives/nullablePrimitives.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/nullableUnsigned") + @TestDataPath("$PROJECT_ROOT") + public class NullableUnsigned { + @Test + public void testAllFilesPresentInNullableUnsigned() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/nullableUnsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("nullableUnsinged.kt") + public void testNullableUnsinged() { + runTest("js/js.translator/testData/typescript-export/wasm/nullableUnsigned/nullableUnsinged.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/primitives") + @TestDataPath("$PROJECT_ROOT") + public class Primitives { + @Test + public void testAllFilesPresentInPrimitives() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/primitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("primitives.kt") + public void testPrimitives() { + runTest("js/js.translator/testData/typescript-export/wasm/primitives/primitives.kt"); + } + } + + @Nested + @TestMetadata("js/js.translator/testData/typescript-export/wasm/unsigned") + @TestDataPath("$PROJECT_ROOT") + public class Unsigned { + @Test + public void testAllFilesPresentInUnsigned() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/wasm/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("unsinged.kt") + public void testUnsinged() { + runTest("js/js.translator/testData/typescript-export/wasm/unsigned/unsinged.kt"); + } + } +}