Skip to content

Commit 5892174

Browse files
committed
Workaround for browser-npm minified error
1 parent 892635d commit 5892174

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/reagenttest/testreagent.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,12 @@
968968
; :default #"Expected React component in: \[:> \[:div]]"
969969
; (rstr [:> [:div]])))
970970
;; This is from React.createElement
971+
;; NOTE: browser-npm uses production cjs bundle for now which only shows
972+
;; the minified error
971973
(debug/track-warnings
972974
(wrap-capture-console-error
973975
#(is (thrown-with-msg?
974-
:default #"Element type is invalid:"
976+
:default #"(Element type is invalid:|Minified React error)"
975977
(rstr [:> [:div]])))))
976978
(is (thrown-with-msg?
977979
:default #"Invalid tag: 'p.'"

0 commit comments

Comments
 (0)