From 8cadb4349824a228779eee2a0b7a67ca5f979d39 Mon Sep 17 00:00:00 2001 From: cpojer Date: Mon, 9 May 2016 16:26:48 -0700 Subject: [PATCH] Fix jest-haste-map on vagrant. --- packages/jest-haste-map/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-haste-map/src/index.js b/packages/jest-haste-map/src/index.js index 2c15b4013d97..d51d6d1d858b 100644 --- a/packages/jest-haste-map/src/index.js +++ b/packages/jest-haste-map/src/index.js @@ -293,7 +293,7 @@ class HasteMap { _getWorker() { if (!this._workerPromise) { let workerFn; - if (this._options.maxWorkers === 1) { + if (this._options.maxWorkers <= 1) { workerFn = worker; } else { this._workerFarm = workerFarm(