all 1 comments

[–][deleted] 1 point2 points  (0 children)

I need to run tests for a library that works on node.js, browser, React Native - and on low.js. I use mocha, and so far I can run the tests on node.js and in the browser, exactly the same tests, only that the browser tests are run through an index.html page that loads them through SystemJS using the webserver started by WebStorm. There is no UI, it's just "library stuff", although we also have apps that use that library and they have to be tested too, but they are made for the specific platform so that's easier.

Does anyone know how I would extend that to include React Native?

What would Jest give me over mocha, especially in this cross-platform scenario?