Fork me on GitHub
#devcards
<
2016-10-13
>
lsenta07:10:55

Hi guys, just found your channel, I was bumping clojurescript about this question: https://clojurians.slack.com/archives/clojurescript/p1476344238008509

lsenta07:10:18

basically I’d like to have my SPA running in figwheel and devcards for my tests running in another figwheel instance

lsenta07:10:02

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

lsenta07:10:33

Do you guys have advices on setting a TDD env where I can have the main app and the devcards running side by side?

bhauman13:10:14

@lsenta: the solution is to run both in the same process: lein figwheel spa devcards

lsenta16:10:07

@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

bhauman16:10:18

@lsenta glad it worked for you

lsenta16:10:09

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?

bhauman16:10:18

@lsenta there is not standard way of setting up test data that I'm aware of

bhauman16:10:12

And the tests do not report line numbers.

lsenta18:10:57

Got it, thank you sir!