Remove workaround for #12567 in e2e Jest tests (#12749)

This commit is contained in:
Nicolò Ribaudo
2021-02-04 14:46:09 +01:00
committed by GitHub
parent a038d787c6
commit a0e3ef2117

View File

@@ -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(/(?<!^<dim>.*)\| <\/>/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