Skip to content

Commit

Permalink
Fix vue tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 26, 2022
1 parent 20888b8 commit 54dd997
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/integration-tests/e2e-vue-cli.sh
Expand Up @@ -39,6 +39,11 @@ fi
# but we import it from @babel/runtime.
sed -i 's%toMatch(`regenerator-runtime/runtime`)%toMatch(`@babel/runtime/helpers/regeneratorRuntime`)%' packages/@vue/babel-preset-app/__tests__/babel-preset.spec.js

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

Expand Down

0 comments on commit 54dd997

Please sign in to comment.