Skip to content

Commit

Permalink
test(react): add react e2e app
Browse files Browse the repository at this point in the history
  • Loading branch information
elylucas committed Oct 12, 2021
1 parent 4075ea6 commit ea34e50
Show file tree
Hide file tree
Showing 78 changed files with 74,631 additions and 27,442 deletions.
35 changes: 33 additions & 2 deletions .circleci/config.yml
@@ -1,6 +1,6 @@
version: 2.1
orbs:
cypress: cypress-io/cypress@1.27.0
cypress: cypress-io/cypress@1.29.0

aliases:
- &restore-cache
Expand Down Expand Up @@ -400,6 +400,33 @@ jobs:
working_directory: /tmp/workspace/packages/react-router

install-react-test-app:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: /tmp/workspace
- run:
command: CYPRESS_CACHE_FOLDER=/tmp/workspace/packages/react/test-app npm install
working_directory: /tmp/workspace/packages/react/test-app
- persist_to_workspace:
root: /tmp/workspace
paths:
- packages/react/test-app

test-react-e2e:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: /tmp/workspace
- run:
command: npm run sync
working_directory: /tmp/workspace/packages/react/test-app
- run:
command: CYPRESS_CACHE_FOLDER=/tmp/workspace/packages/react/test-app npm run e2e
working_directory: /tmp/workspace/packages/react/test-app

install-react-router-test-app:
<<: *defaults
steps:
- checkout
Expand All @@ -413,7 +440,7 @@ jobs:
paths:
- packages/react-router/test-app

test-react-e2e:
test-react-router-e2e:
<<: *defaults
steps:
- checkout
Expand Down Expand Up @@ -543,6 +570,10 @@ workflows:
requires: [build-core]
- test-react-e2e:
requires: [install-react-test-app, build-react, build-react-router]
- install-react-router-test-app:
requires: [build-core]
- test-react-router-e2e:
requires: [install-react-router-test-app, build-react, build-react-router]
- build-vue:
requires: [build-core]
- build-vue-router:
Expand Down

0 comments on commit ea34e50

Please sign in to comment.