[K/JS] Add ES6 typescript tests + fix a few bugs for it

This commit is contained in:
Artem Kobzar
2023-11-30 13:37:06 +00:00
committed by Space Team
parent c569fc170b
commit 98186ec283
9 changed files with 875 additions and 22 deletions
@@ -130,6 +130,10 @@ fun main(args: Array<String>) {
model("typescript-export/", pattern = "^([^_](.+))\\.kt$")
}
testClass<AbstractIrJsES6TypeScriptExportTest> {
model("typescript-export/", pattern = "^([^_](.+))\\.kt$")
}
testClass<AbstractJsIrLineNumberTest> {
model("lineNumbers/")
}
@@ -107,6 +107,16 @@ open class AbstractIrJsTypeScriptExportTest : AbstractJsIrTest(
}
}
open class AbstractIrJsES6TypeScriptExportTest : AbstractJsIrES6Test(
pathToTestDir = "${JsEnvironmentConfigurator.TEST_DATA_DIR_PATH}/typescript-export/",
testGroupOutputDirPrefix = "es6-typescript-export/"
) {
override fun configure(builder: TestConfigurationBuilder) {
super.configure(builder)
configureIrJsTypeScriptExportTest(builder)
}
}
private fun configureIrJsTypeScriptExportTest(builder: TestConfigurationBuilder) {
with(builder) {
defaultDirectives {