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:
parent
403176ae93
commit
82eeca659e
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
|
@ -21,6 +21,17 @@
|
|||
"testPathIgnorePatterns": [
|
||||
"/node_modules/"
|
||||
],
|
||||
"haste": {
|
||||
"defaultPlatform": "ios",
|
||||
"providesModuleNodeModules": [
|
||||
"fbjs",
|
||||
"react",
|
||||
"react-native",
|
||||
"parse",
|
||||
"react-transform-hmr"
|
||||
],
|
||||
"platforms": ["ios", "android"]
|
||||
},
|
||||
"modulePathIgnorePatterns": [
|
||||
"/node_modules/(?!react|fbjs|react-native|parse|react-transform-hmr|core-js|promise)/",
|
||||
"node_modules/react/lib/React.js",
|
||||
|
@ -160,7 +171,7 @@
|
|||
"yeoman-generator": "^0.20.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest-cli": "0.8.2",
|
||||
"jest-cli": "0.9.0-fb1",
|
||||
"babel-eslint": "4.1.4",
|
||||
"eslint": "1.3.1",
|
||||
"eslint-plugin-react": "3.3.1",
|
||||
|
|
|
@ -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) })
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
jest.setMock('worker-farm', function() { return () => {}; })
|
||||
.setMock('uglify-js')
|
||||
.mock('child_process')
|
||||
.dontMock('underscore')
|
||||
.dontMock('../');
|
||||
|
||||
var SocketInterface = require('../');
|
||||
|
|
Loading…
Reference in New Issue