From 02cab78eaa2d564cb46b0e795c062d282d6dee73 Mon Sep 17 00:00:00 2001 From: Christian Linne Date: Tue, 28 Aug 2018 08:09:58 +0200 Subject: [PATCH] fix(jest,npm): Explicitly set testURL for jest; remove npm cache clean, since no longer required. --- packages/react-dev-utils/package.json | 3 +++ packages/react-error-overlay/package.json | 3 ++- tasks/e2e-installs.sh | 2 +- tasks/e2e-kitchensink.sh | 2 +- tasks/e2e-simple.sh | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/react-dev-utils/package.json b/packages/react-dev-utils/package.json index eab07c1be..440a60776 100644 --- a/packages/react-dev-utils/package.json +++ b/packages/react-dev-utils/package.json @@ -60,5 +60,8 @@ }, "scripts": { "test": "jest" + }, + "jest": { + "testURL": "http://localhost/" } } diff --git a/packages/react-error-overlay/package.json b/packages/react-error-overlay/package.json index fe6c7fd68..93aa7d57a 100644 --- a/packages/react-error-overlay/package.json +++ b/packages/react-error-overlay/package.json @@ -76,6 +76,7 @@ "/node_modules/", "/fixtures/", "setupJest.js" - ] + ], + "testURL": "http://localhost/" } } diff --git a/tasks/e2e-installs.sh b/tasks/e2e-installs.sh index d1150a874..3cf57247f 100755 --- a/tasks/e2e-installs.sh +++ b/tasks/e2e-installs.sh @@ -75,7 +75,7 @@ root_path=$PWD if hash npm 2>/dev/null then npm i -g npm@latest - npm cache clean || npm cache verify + npm cache verify fi # Bootstrap monorepo diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index 9a3f895a5..8598ab1c2 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -67,7 +67,7 @@ root_path=$PWD if hash npm 2>/dev/null then npm i -g npm@latest - npm cache clean || npm cache verify + npm cache verify fi # Bootstrap monorepo diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh index a1eecbaf0..1671a54f9 100755 --- a/tasks/e2e-simple.sh +++ b/tasks/e2e-simple.sh @@ -79,7 +79,7 @@ fi if hash npm 2>/dev/null then npm i -g npm@latest - npm cache clean || npm cache verify + npm cache verify fi # Bootstrap monorepo