Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add prettier e2e test (#14058)
Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
- Loading branch information
1 parent
4ac8f77
commit ab2c578
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/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 # | ||
#==============================================================================# | ||
|
||
# Don't use Yarn 2 | ||
export YARN_IGNORE_PATH=1 | ||
|
||
startLocalRegistry "$root"/verdaccio-config.yml | ||
yarn install | ||
|
||
# Only run js,jsx,misc format tests | ||
# Without --runInBand CircleCI hangs. | ||
yarn test "tests/format/(jsx?|misc)/" --update-snapshot --runInBand | ||
|
||
cleanup |