Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
taehee-sp opened this issue Feb 23, 2024 · 3 comments
Open

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

taehee-sp opened this issue Feb 23, 2024 · 3 comments

Comments

@taehee-sp
Copy link
Sponsor

taehee-sp commented Feb 23, 2024

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.

[:script "shadow.test.browser.init();"]])}))

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
Copy link
Sponsor Author

taehee-sp commented Feb 23, 2024

[cljs-test-display.core :as ctd]))

Is it https://github.com/bhauman/cljs-test-display 's issue?

@taehee-sp
Copy link
Sponsor Author

taehee-sp commented Feb 23, 2024

@thheller
Copy link
Owner

Yes, cljs-test-display is the library currently used for this. I do have plans to change that though.

In the meantime you can just add the style needed to your index.html via a regular <style> tag. Or you can replace the actual .css file by making a copy and putting it into your classpath. If you already have a resources folder you can put it into resources/public/com/bhauman/cljs-test-display/css/style.css, or if you only have something like a src/test that would be src/test/public/com/bhauman/cljs-test-display/css/style.css. That should override the file from the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants