From b2a11aff51826c95d4d04bf336425f824d934b98 Mon Sep 17 00:00:00 2001 From: Christoph Pojer Date: Thu, 18 Feb 2016 00:12:42 -0800 Subject: [PATCH] Update + use node-haste2 Summary:This updates jest to 0.9 which will result in *much* faster startup time (1s vs. 10-15s) and better runtime overall (2-3x). The route gen and cli integration tests are failing locally, but also on master. javache is this expected right now or is this related to my changes? Reviewed By: javache Differential Revision: D2943137 fb-gh-sync-id: 8b39ba5f51e30fbc5bacb84d67013ab0a4061f6e shipit-source-id: 8b39ba5f51e30fbc5bacb84d67013ab0a4061f6e --- react-packager/src/Server/__tests__/Server-test.js | 1 + .../src/SocketInterface/__tests__/SocketInterface-test.js | 1 + react-packager/{ => src}/__mocks__/debug.js | 0 3 files changed, 2 insertions(+) rename react-packager/{ => src}/__mocks__/debug.js (100%) diff --git a/react-packager/src/Server/__tests__/Server-test.js b/react-packager/src/Server/__tests__/Server-test.js index b731a026..e6a74aeb 100644 --- a/react-packager/src/Server/__tests__/Server-test.js +++ b/react-packager/src/Server/__tests__/Server-test.js @@ -10,6 +10,7 @@ jest.setMock('worker-farm', function() { return () => {}; }) .dontMock('os') + .dontMock('underscore') .dontMock('path') .dontMock('url') .setMock('timers', { setImmediate: (fn) => setTimeout(fn, 0) }) diff --git a/react-packager/src/SocketInterface/__tests__/SocketInterface-test.js b/react-packager/src/SocketInterface/__tests__/SocketInterface-test.js index 729d2a1d..cf8345b3 100644 --- a/react-packager/src/SocketInterface/__tests__/SocketInterface-test.js +++ b/react-packager/src/SocketInterface/__tests__/SocketInterface-test.js @@ -11,6 +11,7 @@ jest.setMock('worker-farm', function() { return () => {}; }) .setMock('uglify-js') .mock('child_process') + .dontMock('underscore') .dontMock('../'); var SocketInterface = require('../'); diff --git a/react-packager/__mocks__/debug.js b/react-packager/src/__mocks__/debug.js similarity index 100% rename from react-packager/__mocks__/debug.js rename to react-packager/src/__mocks__/debug.js