Jest vs AVA for 112 tests (mostly on React components shallow rendering):
Jest: 16s
AVA: 1m 6s
Jest rocks!
Thx @cpojer & friends
-
-
woah that's a big diff!
@sindresorhus any idea why this is the case?2 replies 0 retweets 2 likes -
Many reasons. AVA was never made with React in mind. I made AVA to optimize for async concurrency.
3 replies 1 retweet 6 likes -
Replying to @sindresorhus @mxstbr and
Before AVA got popular, I no idea people actually had like 800 test files with one synchronous test in each.
1 reply 0 retweets 4 likes -
Replying to @sindresorhus @mxstbr and
We're working hard on optimizing for that case now though, but Jest is probably a better choice for React today.
1 reply 0 retweets 1 like -
Replying to @sindresorhus @mxstbr and
The main problem has been loading Babel in each process and no caching since people use `babel-register`.
3 replies 0 retweets 2 likes
Replying to @sindresorhus @mxstbr and
could making babel optional also help? I don't use it anymore, but ava requires it.
7:47 AM - 9 Sep 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.