From a0e3ef2117983a59b0142dd4f27b3c7c1fc57d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Thu, 4 Feb 2021 14:46:09 +0100 Subject: [PATCH] Remove workaround for #12567 in e2e Jest tests (#12749) --- scripts/integration-tests/e2e-jest.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scripts/integration-tests/e2e-jest.sh b/scripts/integration-tests/e2e-jest.sh index 8241fa4dc2..a44d5129a8 100755 --- a/scripts/integration-tests/e2e-jest.sh +++ b/scripts/integration-tests/e2e-jest.sh @@ -37,13 +37,6 @@ python --version # TEST # #==============================================================================# -# Workaround for https://github.com/babel/babel/pull/12567 -node -e ' - let snapshots = fs.readFileSync("packages/jest-message-util/src/__tests__/__snapshots__/messages.test.ts.snap", "utf8"); - snapshots = snapshots.replace(/(?.*)\| <\/>/gm, "|<\/> "); - fs.writeFileSync("packages/jest-message-util/src/__tests__/__snapshots__/messages.test.ts.snap", snapshots); -' - if [ "$BABEL_8_BREAKING" = true ] ; then # This option is removed in Babel 8 sed -i 's/allowDeclareFields: true,\?/\/* allowDeclareFields: true *\//g' babel.config.js