From 5aee5fe2f19cd8defa8b1ec119d63637889d96a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Sat, 3 Nov 2018 16:55:40 +0100 Subject: [PATCH] fix(jest-dev-server): do not require port to run server Closes #146 --- packages/jest-dev-server/src/global.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/jest-dev-server/src/global.js b/packages/jest-dev-server/src/global.js index af732899..cb4809a0 100644 --- a/packages/jest-dev-server/src/global.js +++ b/packages/jest-dev-server/src/global.js @@ -133,9 +133,11 @@ export async function setup(config) { ) } } + } - runServer(config) + runServer(config) + if (config.port) { const { launchTimeout } = config let timeout