We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e34f8 commit 5ae4ebbCopy full SHA for 5ae4ebb
test/react/server_rendering/bundle_renderer_test.rb
@@ -68,7 +68,13 @@ class BundleRendererTest < ActiveSupport::TestCase
68
@renderer.render("NonExistentComponent", {}, nil)
69
end
70
71
- assert_match(/ReferenceError/, err.to_s)
+ if WebpackerHelpers.available?
72
+ # require() failed:
73
+ assert_match(/Invariant Violation: Element type is invalid: expected a string/, err.to_s)
74
+ else
75
+ # eval() failed:
76
+ assert_match(/ReferenceError/, err.to_s)
77
+ end
78
assert_match(/NonExistentComponent/, err.to_s, "it names the component")
79
80
assert_match(/\n/, err.to_s, "it includes the multi-line backtrace")
0 commit comments