From 5cf0fd116fe1bba3bcd0aafbbe37c1914023845a Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Tue, 13 Jun 2023 19:08:10 +0200 Subject: [PATCH] [JS] Migrate diagnostics test to IR backend --- .../test/runners/AbstractDiagnosticsTestWithJsStdLib.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractDiagnosticsTestWithJsStdLib.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractDiagnosticsTestWithJsStdLib.kt index ed39ffcb1c1..c7914180a27 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractDiagnosticsTestWithJsStdLib.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractDiagnosticsTestWithJsStdLib.kt @@ -6,6 +6,7 @@ package org.jetbrains.kotlin.test.runners import org.jetbrains.kotlin.platform.js.JsPlatforms +import org.jetbrains.kotlin.test.TargetBackend import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder import org.jetbrains.kotlin.test.builders.classicFrontendHandlersStep import org.jetbrains.kotlin.test.builders.classicFrontendStep @@ -17,6 +18,7 @@ import org.jetbrains.kotlin.test.frontend.classic.handlers.DynamicCallsDumpHandl import org.jetbrains.kotlin.test.frontend.classic.handlers.OldNewInferenceMetaInfoProcessor import org.jetbrains.kotlin.test.model.DependencyKind import org.jetbrains.kotlin.test.model.FrontendKinds +import org.jetbrains.kotlin.test.services.JsLibraryProvider import org.jetbrains.kotlin.test.services.configuration.CommonEnvironmentConfigurator import org.jetbrains.kotlin.test.services.sourceProviders.AdditionalDiagnosticsSourceFilesProvider import org.jetbrains.kotlin.test.services.sourceProviders.CoroutineHelpersSourceFilesProvider @@ -27,6 +29,7 @@ abstract class AbstractDiagnosticsTestWithJsStdLib : AbstractKotlinCompilerTest( globalDefaults { frontend = FrontendKinds.ClassicFrontend targetPlatform = JsPlatforms.defaultJsPlatform + targetBackend = TargetBackend.JS_IR dependencyKind = DependencyKind.Source } @@ -34,6 +37,8 @@ abstract class AbstractDiagnosticsTestWithJsStdLib : AbstractKotlinCompilerTest( +JvmEnvironmentConfigurationDirectives.USE_PSI_CLASS_FILES_READING } + useAdditionalService(::JsLibraryProvider) + enableMetaInfoHandler() useConfigurators(