From 17e1e3b99a8a7b7820de3ff576ba67d653d1597c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 25 Mar 2022 19:50:51 +0100 Subject: [PATCH] Fix vue tests --- scripts/integration-tests/e2e-vue-cli.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/integration-tests/e2e-vue-cli.sh b/scripts/integration-tests/e2e-vue-cli.sh index 78d742dee3d3..b6c2ac6ff31f 100755 --- a/scripts/integration-tests/e2e-vue-cli.sh +++ b/scripts/integration-tests/e2e-vue-cli.sh @@ -35,6 +35,11 @@ if [[ "$(node --version)" == v17.* ]]; then export NODE_OPTIONS=--openssl-legacy-provider fi +if [ "$BABEL_8_BREAKING" = true ] ; then + # This option is renamed in Babel 8 + sed -i 's/legacy: decoratorsLegacy !== false/version: decoratorsLegacy === false ? "legacy": "2021-12"/g' packages/@vue/babel-preset-app/index.js +fi + # Test CI=true yarn test -p babel,babel-preset-app