Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

For the :node-test build target it was extremely simple to set up humane-test-output, but I am having difficulty with the :browser-test target.

I am curious if anyone else has it working and can give pointers?

1 Answer

0 votes
by

shadow-cljs currently uses cljs-test-display for :browser-test. This makes the UI slightly prettier.

cljs-test-display sets its own :reporter value when running the tests (see code).

As far as I can tell this then bypasses the overwritten :fail reporter created by humane-test-output here.

The problem is that cljs-test-display seems to be relying on that custom reporter to create its own UI, so replacing that bit will likely break the UI in some way.

I'm guessing you'd need to overwrite this bit and hook up humane-test-output into that. I'm not sure how feasible this is.

...