shadow-cljs icon indicating copy to clipboard operation
shadow-cljs copied to clipboard

More readable error log with pre-line for browser-test

Open taehee-sp opened this issue 4 months ago • 3 comments

Proposal

It would be nice to add just one line css. .error-message { white-space: pre; }

MDN : white-space image

I find the file. I will create Pull Request for it soon.

https://github.com/thheller/shadow-cljs/blob/a496c6febd36a7e9e6919180796f9ace81ff98e0/src/main/shadow/cljs/devtools/server/web.clj#L181

Problem

Error message is not readable. New lines are ignored.

image

package.json

"shadow-cljs": "2.25.2"

shadow-cljs.edn

  :test
  {:target :browser-test
   :test-dir "resources/public/test"
   :ns-regexp "-test$"
   :devtools
   {:http-root "resources/public/test"
    :http-port 3002}
  }

taehee-sp avatar Feb 23 '24 01:02 taehee-sp