-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run jest's tests in the e2e tests (#12202)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
- Loading branch information
1 parent
9f83b5a
commit 63567f0
Showing
4 changed files
with
71 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/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 jest | ||
git clone --depth=1 https://github.com/facebook/jest /tmp/jest | ||
cd /tmp/jest || exit | ||
|
||
# Update @babel/* dependencies | ||
bump_deps="$root/utils/bump-babel-dependencies.js" | ||
node "$bump_deps" | ||
for d in ./packages/*/ | ||
do | ||
(cd "$d"; node "$bump_deps") | ||
done | ||
|
||
#==============================================================================# | ||
# ENVIRONMENT # | ||
#==============================================================================# | ||
node -v | ||
yarn --version | ||
python --version | ||
|
||
#==============================================================================# | ||
# TEST # | ||
#==============================================================================# | ||
|
||
startLocalRegistry "$root"/verdaccio-config.yml | ||
yarn install | ||
yarn dedupe '@babel/*' | ||
yarn build | ||
|
||
# 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: | ||
# 1) Check that the typescript compilation isn't completely broken | ||
# 2) Make sure that we don't accidentally break jest's usage of the Babel API | ||
CI=true yarn test-ci-partial packages | ||
CI=true yarn test-ci-partial e2e/__tests__/babel | ||
CI=true yarn test-ci-partial e2e/__tests__/transform | ||
|
||
cleanup |
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