2 ms·
Can Jest run concurrent tests? I'm using Tape as of late and I find myself having too many long-running functional tests in series but it doesn't seem to be som
by mmmpop 10y ago
Can Jest run concurrent tests? I'm using Tape as of late and I find myself having too many long-running functional tests in series but it doesn't seem to be something I can work around.
- shados 10y agoYes, yes it can. And because it can isolate tests and reset the environment, you don't really have to be (very) careful about what you do in your tests so order doesn't matter. It makes it really hard to fail there.
- cpojer 10y agoHey! I'm Christoph and I work on Jest. We wrote a blog post about how we are making Jest fast: facebook.github.io/jest/blog/2016/03/11/javascript-unit-testing-performance.html If your test is fully CPU bound and limited to one core, it probably won't be faster with Jest. If you split it up across multiple files, it will parallelize tests.