Hi guys, just found your channel, I was bumping clojurescript about this question: https://clojurians.slack.com/archives/clojurescript/p1476344238008509
basically I’d like to have my SPA running in figwheel and devcards for my tests running in another figwheel instance
I thought I could simply lein figwheel
to access my SPA and lein figwheel devcards
to access my tests, setting a different server port but figwheel won’t let me
Do you guys have advices on setting a TDD env where I can have the main app and the devcards running side by side?
@lsenta: the solution is to run both in the same process: lein figwheel spa devcards
@bhauman thanks for the advice! Running both builds and serving different spa.html with the same instances didn’t occurred to me, it’s working and it looks great
@lsenta glad it worked for you
2 last questions, hopefully 🙂
- is there a way to show the line number in the deftest
cards? to help finding what’s broken.
- are there any workaround for https://github.com/bhauman/devcards/issues/104? I have some async fixtures that setups firebase, reframe & others before testing. Is there a “right” way to do this setup with tests devcards?
@lsenta there is not standard way of setting up test data that I'm aware of
And the tests do not report line numbers.
Got it, thank you sir!