mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
52 lines
1.7 KiB
Bash
Executable File
52 lines
1.7 KiB
Bash
Executable File
#!/bin/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
|
|
bump_deps="$root/utils/bump-babel-dependencies.js"
|
|
node "$bump_deps"
|
|
|
|
#==============================================================================#
|
|
# 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/jsfmt.spec.js`
|
|
# rm -f path/to/jsfmt.spec.js
|
|
|
|
yarn test "tests/format/(jsx?|misc|typescript|flow|flow-repo)/" --update-snapshot --runInBand
|
|
|
|
cleanup
|