Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e test: create-react-app #10704

Merged
merged 5 commits into from Dec 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions .circleci/config.yml
Expand Up @@ -160,6 +160,14 @@ jobs:
at: /tmp/verdaccio-workspace
- run: ./scripts/integration-tests/e2e-babel.sh

e2e-create-react-app:
executor: node-executor
steps:
- checkout
- attach_workspace:
at: /tmp/verdaccio-workspace
- run: ./scripts/integration-tests/e2e-create-react-app.sh

workflows:
version: 2
test:
Expand Down Expand Up @@ -193,3 +201,6 @@ workflows:
- e2e-babel:
requires:
- publish-verdaccio
- e2e-create-react-app:
requires:
- publish-verdaccio
33 changes: 33 additions & 0 deletions scripts/integration-tests/e2e-create-react-app.sh
@@ -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
JLHwung marked this conversation as resolved.
Show resolved Hide resolved

# Test
CI=true yarn test

cleanup