Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Prettier integration test #15519

Merged
merged 1 commit into from Mar 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 3 additions & 8 deletions scripts/integration-tests/e2e-prettier.sh
Expand Up @@ -15,7 +15,7 @@ source utils/cleanup.sh
set -x

# Clone prettier
git clone --depth=1 --single-branch --branch next https://github.com/prettier/prettier tmp/prettier
git clone --depth=1 https://github.com/prettier/prettier tmp/prettier
cd tmp/prettier || exit

# Update @babel/* dependencies
Expand All @@ -42,14 +42,9 @@ yarn lint:typecheck
# https://github.com/babel/babel/pull/14892#issuecomment-1233180626
echo "export default () => () => {}" > src/main/create-print-pre-check-function.js

# Temporarily ignore tests, use `rm -f path/to/jsfmt.spec.js`
# https://github.com/babel/babel/pull/15400#issuecomment-1414539133
# Ignore this test until prettier update the snapshot
# because prettier has ignored UnexpectedReservedWord error
rm -f tests/format/flow-repo/async/await_parse.js
rm -f tests/format/misc/errors/js/explicit-resource-management/invalid-using-binding-await.js
# https://github.com/babel/babel/pull/15384
rm -f tests/format/misc/errors/typescript/modifiers/jsfmt.spec.js
# Temporarily ignore tests, use `rm -f path/to/jsfmt.spec.js`
# rm -f path/to/jsfmt.spec.js

yarn test "tests/format/(jsx?|misc|typescript|flow|flow-repo)/" --update-snapshot --runInBand

Expand Down