Skip to content

Commit

Permalink
Log full stack trace in e2e errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Feb 7, 2024
1 parent 86081fe commit bdb9256
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sitefoxtest/e2etests.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
{:browser browser :context context :page page}))

(defn catch-fail [err done server & [browser]]
(is (nil? err) (str "Error in test: " (.toString err)))
(when err
(.error js/console (j/get err :stack)))
(is (nil? err)
(str "Error in test: " (.toString err)))
(j/call server :kill)
(when browser
(.close browser))
Expand Down

0 comments on commit bdb9256

Please sign in to comment.