/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
scripts/integration-tests/e2e-prettier.sh
50 строк
2 KB
fisker Cheung
Clean up Prettier E2E test script (#18155)
07 авг 2026, 12:30
Не верифицирован
07 авг 2026, 12:30
7b8e231
Код
Авторство
О чём код?
#!/usr/bin/env bash #==============================================================================# # SETUP # #==============================================================================# # Start in scripts/integration-tests/ even if run from root directory cd "$(dirname "$0")" || exit root="$PWD" source utils/local-registry.sh source utils/cleanup.sh # Echo every command being executed set -x # Clone prettier git clone --depth=1 https://github.com/prettier/prettier /tmp/prettier cd /tmp/prettier || exit # Update @babel/* dependencies node "$root/utils/bump-babel-dependencies.js" #==============================================================================# # ENVIRONMENT # #==============================================================================# node -v yarn --version #==============================================================================# # TEST # #==============================================================================# startLocalRegistry "$root"/verdaccio-config.yml yarn install --no-immutable yarn info # Test typings for @babel/parser yarn lint:typecheck # https://github.com/babel/babel/pull/14892#issuecomment-1233180626 echo "export default () => () => {}" > src/main/create-print-pre-check-function.js # https://github.com/babel/babel/pull/15400#issuecomment-1414539133 # Temporarily ignore tests, use `rm -f path/to/format.test.js` # rm -f path/to/format.test.js yarn test "tests/format/(jsx?|misc|typescript|flow)/" --update-snapshot cleanup