For anyone else finding this thread. I've seen similar numbers and improved it by making some modifications to my JSX preprocessor file. The original file is at the bottom of
https://facebook.github.io/jest/docs/tutorial-react.html#content.
Mine now look like this:
var ReactTools = require('react-tools');
module.exports = {
process: function(src, file) {
// We really only care about JSX and React test files
if (/\.jsx$/.test(file) || /react-test.js$/.test(file)) return ReactTools.transform(src);
return src;
}
};
Note the "*react-test.js" naming convention for our React test files. The above ensures that only *.jsx and our specific React test files are being transformed.
Another improvement I made to my tests was moving the require() statements within my tests from the beforeEach() function right at the top of the describe() function.
Cheers,
Mike