[react-packager] Injectible file crawlers (2x crawl speedup)

This commit is contained in:
Amjad Masad
2015-06-24 17:40:29 -07:00
parent 336e18d20b
commit 1109ce3b8c
8 changed files with 285 additions and 120 deletions

View File

@@ -13,6 +13,8 @@ jest
.dontMock('crypto')
.dontMock('absolute-path')
.dontMock('../docblock')
.dontMock('../../crawlers')
.dontMock('../../crawlers/node')
.dontMock('../../replacePatterns')
.dontMock('../../../lib/getAssetDataFromName')
.dontMock('../../fastfs')
@@ -22,6 +24,8 @@ jest
.dontMock('../../Package')
.dontMock('../../ModuleCache');
const Promise = require('promise');
jest.mock('fs');
describe('DependencyGraph', function() {
@@ -36,7 +40,8 @@ describe('DependencyGraph', function() {
fileWatcher = {
on: function() {
return this;
}
},
isWatchman: () => Promise.resolve(false)
};
});