From 09fe1862d2a24bbdf35bc8e64973cd2a52430ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 3 Jan 2020 21:16:41 -0500 Subject: [PATCH] chore: workaround yarn issue --- scripts/integration-tests/e2e-create-react-app.sh | 3 +++ scripts/integration-tests/e2e-vue-cli.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/integration-tests/e2e-create-react-app.sh b/scripts/integration-tests/e2e-create-react-app.sh index 1c956f240cee..8b4bebb89b56 100755 --- a/scripts/integration-tests/e2e-create-react-app.sh +++ b/scripts/integration-tests/e2e-create-react-app.sh @@ -23,6 +23,9 @@ cd tmp/create-react-app || exit startLocalRegistry "$PWD"/../../verdaccio-config.yml yarn install +# Workaround https://github.com/yarnpkg/yarn/issues/7797 +yarn add --dev -W @babel/core + # "yarn upgrade --scope @babel --latest" doesn't seem to work. # a means "all", while \n is the enter needed to confirm the selection. printf "a\n" | yarn upgrade-interactive --scope @babel --latest diff --git a/scripts/integration-tests/e2e-vue-cli.sh b/scripts/integration-tests/e2e-vue-cli.sh index c640661652a9..16179cbe551b 100755 --- a/scripts/integration-tests/e2e-vue-cli.sh +++ b/scripts/integration-tests/e2e-vue-cli.sh @@ -22,6 +22,9 @@ cd tmp/vue-cli || exit #==============================================================================# startLocalRegistry "$PWD"/../../verdaccio-config.yml + +# +yarn global add yarn@1.18 yarn install # "yarn upgrade --scope @babel --latest" doesn't seem to work. # a means "all", while \n is the enter needed to confirm the selection.