mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 20:56:49 +08:00
[react-packager] Injectible file crawlers (2x crawl speedup)
This commit is contained in:
@@ -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)
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user