e2e test: create-react-app (#10704)
* e2e test: create-react-app * Fix * Fix * Fix * Fix
This commit is contained in:
33
scripts/integration-tests/e2e-create-react-app.sh
Executable file
33
scripts/integration-tests/e2e-create-react-app.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
#==============================================================================#
|
||||
# SETUP #
|
||||
#==============================================================================#
|
||||
|
||||
# Start in scripts/integration-tests/ even if run from root directory
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
source utils/local-registry.sh
|
||||
source utils/cleanup.sh
|
||||
|
||||
# Echo every command being executed
|
||||
set -x
|
||||
|
||||
# Clone create-react-app
|
||||
git clone https://github.com/facebook/create-react-app.git tmp/create-react-app
|
||||
cd tmp/create-react-app
|
||||
|
||||
#==============================================================================#
|
||||
# TEST #
|
||||
#==============================================================================#
|
||||
|
||||
startLocalRegistry "$PWD"/../../verdaccio-config.yml
|
||||
yarn install
|
||||
# "yarn upgrade --scope @babel --latest" doesn't seem to work.
|
||||
# a means "all", while \n is the enter needed to confirm the selection.
|
||||
echo "a\n" | yarn upgrade-interactive --scope @babel --latest
|
||||
|
||||
# Test
|
||||
CI=true yarn test
|
||||
|
||||
cleanup
|
||||
Reference in New Issue
Block a user