Skip to content

Commit

Permalink
Add workaround for expected Jest e2e test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 29, 2020
1 parent e78f1bd commit 0d68324
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/integration-tests/e2e-jest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ yarn install
yarn dedupe '@babel/*'
yarn build

# 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);
'

# The full test suite takes about 20mins on CircleCI. We run only a few of them
# to speed it up.
# The goals of this e2e test are:
Expand Down

0 comments on commit 0d68324

Please sign in to comment.