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
This commit is contained in:
Christoph Pojer 2016-02-18 00:12:42 -08:00 committed by facebook-github-bot-4
parent 403176ae93
commit 82eeca659e
5 changed files with 560 additions and 484 deletions

1029
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,17 @@
"testPathIgnorePatterns": [ "testPathIgnorePatterns": [
"/node_modules/" "/node_modules/"
], ],
"haste": {
"defaultPlatform": "ios",
"providesModuleNodeModules": [
"fbjs",
"react",
"react-native",
"parse",
"react-transform-hmr"
],
"platforms": ["ios", "android"]
},
"modulePathIgnorePatterns": [ "modulePathIgnorePatterns": [
"/node_modules/(?!react|fbjs|react-native|parse|react-transform-hmr|core-js|promise)/", "/node_modules/(?!react|fbjs|react-native|parse|react-transform-hmr|core-js|promise)/",
"node_modules/react/lib/React.js", "node_modules/react/lib/React.js",
@ -160,7 +171,7 @@
"yeoman-generator": "^0.20.3" "yeoman-generator": "^0.20.3"
}, },
"devDependencies": { "devDependencies": {
"jest-cli": "0.8.2", "jest-cli": "0.9.0-fb1",
"babel-eslint": "4.1.4", "babel-eslint": "4.1.4",
"eslint": "1.3.1", "eslint": "1.3.1",
"eslint-plugin-react": "3.3.1", "eslint-plugin-react": "3.3.1",

View File

@ -10,6 +10,7 @@
jest.setMock('worker-farm', function() { return () => {}; }) jest.setMock('worker-farm', function() { return () => {}; })
.dontMock('os') .dontMock('os')
.dontMock('underscore')
.dontMock('path') .dontMock('path')
.dontMock('url') .dontMock('url')
.setMock('timers', { setImmediate: (fn) => setTimeout(fn, 0) }) .setMock('timers', { setImmediate: (fn) => setTimeout(fn, 0) })

View File

@ -11,6 +11,7 @@
jest.setMock('worker-farm', function() { return () => {}; }) jest.setMock('worker-farm', function() { return () => {}; })
.setMock('uglify-js') .setMock('uglify-js')
.mock('child_process') .mock('child_process')
.dontMock('underscore')
.dontMock('../'); .dontMock('../');
var SocketInterface = require('../'); var SocketInterface = require('../');