From bdb92562d9e9cb7fc1ba58916280732e0e32be7e Mon Sep 17 00:00:00 2001 From: Chris McCormick Date: Wed, 7 Feb 2024 12:10:57 +0000 Subject: [PATCH] Log full stack trace in e2e errors. --- src/sitefoxtest/e2etests.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sitefoxtest/e2etests.cljs b/src/sitefoxtest/e2etests.cljs index ec7a1bb..0a8afae 100644 --- a/src/sitefoxtest/e2etests.cljs +++ b/src/sitefoxtest/e2etests.cljs @@ -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))