Workaround for browser-npm minified error

This commit is contained in:
Juho Teperi 2018-05-04 18:58:00 +03:00
parent 892635d265
commit 5892174a12
1 changed files with 3 additions and 1 deletions

View File

@ -968,10 +968,12 @@
; :default #"Expected React component in: \[:> \[:div]]"
; (rstr [:> [:div]])))
;; This is from React.createElement
;; NOTE: browser-npm uses production cjs bundle for now which only shows
;; the minified error
(debug/track-warnings
(wrap-capture-console-error
#(is (thrown-with-msg?
:default #"Element type is invalid:"
:default #"(Element type is invalid:|Minified React error)"
(rstr [:> [:div]])))))
(is (thrown-with-msg?
:default #"Invalid tag: 'p.'"