diff --git a/library/tests/src/test/scala/japgolly/scalajs/react/core/ScalaComponentTest.scala b/library/tests/src/test/scala/japgolly/scalajs/react/core/ScalaComponentTest.scala index 49852cc8f..ba033caf9 100644 --- a/library/tests/src/test/scala/japgolly/scalajs/react/core/ScalaComponentTest.scala +++ b/library/tests/src/test/scala/japgolly/scalajs/react/core/ScalaComponentTest.scala @@ -169,7 +169,8 @@ object ScalaComponentPTest extends TestSuite { assertEq("willUnmountCount", willUnmountCount, 0) mounted = Comp(null).renderIntoDOM(mountNode) - assertOuterHTMLMatches(el(), "
Error: Cannot read propert(y|ies) of null.*
") + // Error message varies between development and production modes + assertOuterHTMLMatches(el(), "
(?:Error: Cannot read propert(y|ies) of null.*|Error: java\\.lang\\.NullPointerException)
") assertEq("willUnmountCount", willUnmountCount, 1) mounted.withEffectsPure.getDOMNode }