arch-js / arch

Web application framework for React by Red Badger
BSD 3-Clause "New" or "Revised" License
170 stars 13 forks source link

Unit testing story #63

Open charypar opened 9 years ago

charypar commented 9 years ago

We should spend some time integrating a testing tool and letting app developers easily unit test components and state observers.

Shall we discuss options of test frameworks? Or, even better, can we do it in a framework agnostic way and let people decide in the generator?

chrisvfritz commented 9 years ago

I'd personally prefer that Arch be flexibly opinionated here, similar to Rails (i.e. here's the recommended setup, which we'll create for you unless you explicitly tell us not to, but then you're on your own). Jasmine, Jest, and React's TestUtils are a popular combo - and I'm personally a fan.

charypar commented 9 years ago

Yes, that's what we have in mind. I think what we'll end up going with is Jasmine + React's TestUtils and Cheerio for markup assertions. This is one of those things where you have a 100 equivalent options, we just need to settle on the default and make the tooling make it easy for the user.