packager: DependencyGraph-test: mock child_process

Reviewed By: cpojer

Differential Revision: D4182064

fbshipit-source-id: e645e6d952e3aeaadaf35e29d6fcaf6395e590a7
This commit is contained in:
Jean Lauliac 2016-11-15 03:34:43 -08:00 committed by Facebook Github Bot
parent c9e5a64940
commit 15baa16ada
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@ jest.useRealTimers();
jest
.mock('fs')
.mock('../../Logger')
.mock('../../lib/TransformCache');
.mock('../../lib/TransformCache')
// It's noticeably faster to prevent running watchman from FileWatcher.
.mock('child_process', () => ({}))
;
// This is an ugly hack:
// * jest-haste-map uses `find` for fast file system crawling which won't work