Skip to content

Commit

Permalink
Disabled requireJsDomEnv in Test
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed May 26, 2021
1 parent a362d66 commit 6f66ca7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
5 changes: 1 addition & 4 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
//resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/"
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"

//use patched versions by now, to make scoverage work with scalajs-bundler
addSbtPlugin(("org.scommons.patched" % "sbt-scalajs-bundler" % "0.14.0-SNAPSHOT").force())

addSbtPlugin(("org.scommons.sbt" % "sbt-scommons-plugin" % "1.0.0-SNAPSHOT").changing())
addSbtPlugin(("org.scommons.sbt" % "sbt-scommons-plugin" % "0.4.0-SNAPSHOT").changing())
2 changes: 0 additions & 2 deletions project/src/main/scala/definitions/ReactShowcase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ object ReactShowcase extends ScalaJsModule {
publishLocal := ((): Unit),
publishM2 := ((): Unit),

requireJsDomEnv in Test := true,

coverageExcludedPackages :=
"scommons.react.showcase.app.ShowcaseReactApp" +
";scommons.react.showcase.dom.ReactPortalDemo",
Expand Down
6 changes: 1 addition & 5 deletions project/src/main/scala/definitions/ReactTestDom.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import sbt.Keys._
import sbt._
import scoverage.ScoverageKeys._

import scalajsbundler.sbtplugin.ScalaJSBundlerPlugin.autoImport._

object ReactTestDom extends ScalaJsModule {

override val id: String = "scommons-react-test-dom"
Expand All @@ -18,9 +16,7 @@ object ReactTestDom extends ScalaJsModule {
description := "Web DOM Scala.js, React.js testing utilities",

coverageEnabled := false, //until this is fixed: https://github.com/scalacenter/scalajs-bundler/issues/197
coverageExcludedPackages := "scommons.react.test.dom.raw",

requireJsDomEnv in Test := true
coverageExcludedPackages := "scommons.react.test.dom.raw"
)

override val internalDependencies: Seq[ClasspathDep[ProjectReference]] = Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package scommons.react.test.dom

import org.scalatest.time.{Millis, Span}

class AsyncTestSpecTest extends AsyncTestSpec {
//disabled until this is fixed: https://github.com/scalacenter/scalajs-bundler/issues/197
trait AsyncTestSpecTest extends AsyncTestSpec {

implicit override val patienceConfig: PatienceConfig = PatienceConfig(
timeout = scaled(Span(500, Millis)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import scommons.react.test.dom.util.TestDOMUtils

import scala.scalajs.js

class SimulateSpec extends TestSpec with TestDOMUtils {
//disabled until this is fixed: https://github.com/scalacenter/scalajs-bundler/issues/197
trait SimulateSpec extends TestSpec with TestDOMUtils {

it should "simulate onClick event" in {
//given
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import org.scalatest.{Failed, OutcomeOf}
import scommons.react._
import scommons.react.test.TestSpec

class TestDOMUtilsSpec extends TestSpec
//disabled until this is fixed: https://github.com/scalacenter/scalajs-bundler/issues/197
trait TestDOMUtilsSpec extends TestSpec
with TestDOMUtils
with OutcomeOf {

Expand Down

0 comments on commit 6f66ca7

Please sign in to comment.