diff --git a/js/js.tests/js.tests.iml b/js/js.tests/js.tests.iml
index c6c55dda3aa..15314fd8ffb 100644
--- a/js/js.tests/js.tests.iml
+++ b/js/js.tests/js.tests.iml
@@ -14,6 +14,7 @@
+
diff --git a/js/js.tests/test/org/jetbrains/k2js/test/TestWithEnvironment.java b/js/js.tests/test/org/jetbrains/k2js/test/TestWithEnvironment.java
index b3c3759a642..d98ec899672 100644
--- a/js/js.tests/test/org/jetbrains/k2js/test/TestWithEnvironment.java
+++ b/js/js.tests/test/org/jetbrains/k2js/test/TestWithEnvironment.java
@@ -20,8 +20,9 @@ import com.intellij.openapi.project.Project;
import com.intellij.testFramework.UsefulTestCase;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
-import org.jetbrains.jet.JetTestUtils;
+import org.jetbrains.jet.CompileCompilerDependenciesTest;
import org.jetbrains.jet.cli.jvm.compiler.JetCoreEnvironment;
+import org.jetbrains.jet.lang.resolve.java.CompilerSpecialMode;
/**
* @author Pavel Talanov
@@ -50,6 +51,9 @@ public abstract class TestWithEnvironment extends UsefulTestCase {
}
protected void createEnvironmentWithMockJdkAndIdeaAnnotations() {
- myEnvironment = JetCoreEnvironment.getCoreEnvironmentForJS(getTestRootDisposable());
+ myEnvironment = JetCoreEnvironment.getCoreEnvironmentForJVM(getTestRootDisposable(),
+ CompileCompilerDependenciesTest.compilerDependenciesForTests(
+ CompilerSpecialMode.JS,
+ true));
}
}