From 61a0116dd4b399f4575ae2bd98320324f4dd4951 Mon Sep 17 00:00:00 2001 From: Christoph Nakazawa Date: Mon, 11 Sep 2017 19:32:37 -0700 Subject: [PATCH] Prevent logspew in symbolication worker-test Reviewed By: mjesun Differential Revision: D5803050 fbshipit-source-id: b585d073191ae521e8bc8cabb90a15d2a176d6da --- .../src/Server/symbolicate/__tests__/worker-test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/metro-bundler/src/Server/symbolicate/__tests__/worker-test.js b/packages/metro-bundler/src/Server/symbolicate/__tests__/worker-test.js index 10ab9cfb..bdd57c53 100644 --- a/packages/metro-bundler/src/Server/symbolicate/__tests__/worker-test.js +++ b/packages/metro-bundler/src/Server/symbolicate/__tests__/worker-test.js @@ -10,6 +10,10 @@ */ 'use strict'; +jest.mock('net', () => ({ + createServer: () => ({listen: () => {}}), +})); + const SourceMapGenerator = require('../../../Bundler/source-map/Generator'); const {symbolicate} = require('../worker');