mirror of https://github.com/status-im/metro.git
packager: DependencyGraph-test: mock child_process
Reviewed By: cpojer Differential Revision: D4182064 fbshipit-source-id: e645e6d952e3aeaadaf35e29d6fcaf6395e590a7
This commit is contained in:
parent
170ae0a520
commit
1afa045dea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue