Jest takes 191s for a single test

34 views
Skip to first unread message

Joshua Ma

unread,
Apr 30, 2015, 3:32:55 PM4/30/15
to jes...@googlegroups.com
HI all,

I'm wondering if anyone has tips for speeding these tests up - we recently started trying out jest, and it takes 191s (!) to run a single test.

Some stats:
- We have 812 JS source files (they're actually coffeescript, but to remove that out of consideration they're all compiled into JS right now)
- I added some file logging around Loader.prototype.requireModuleOrMock in HasteModuleLoader.js, and there were 1814 mocked files and 85879 required files. (I've added a few node_modules directories and a few select source files to unmockedModulePathPatterns)
- We have some jade files, which I've added to unmockedModulePathPattern and am converting via scriptPreprocessor
- ? Happy to provide any other stats if it helps debugging

I'm not quite sure how else to debug this, but > 3 minutes for one test is a dealbreaker. :(

Regards,
Josh
Reply all
Reply to author
Forward
0 new messages