diff --git a/packages/apollo-angular/schematics/install/index.ts b/packages/apollo-angular/schematics/install/index.ts index 6c505987d..f3c6687ef 100644 --- a/packages/apollo-angular/schematics/install/index.ts +++ b/packages/apollo-angular/schematics/install/index.ts @@ -33,7 +33,7 @@ export function factory(options: Schema): Rule { export function createDependenciesMap(options: Schema): Record { return { - 'apollo-angular': '^4.2.0', + 'apollo-angular': '^7.0.0', '@apollo/client': '^3.0.0', graphql: `^${options.graphql ?? '16.0.0'}`, }; diff --git a/scripts/prepare-e2e.js b/scripts/prepare-e2e.js index f0a3f82a6..70b614f8a 100755 --- a/scripts/prepare-e2e.js +++ b/scripts/prepare-e2e.js @@ -25,7 +25,7 @@ function updateCypress() { const code = fs .readFileSync(filepath, 'utf8') .replace( - `cy.contains('app is running!')`, + `cy.contains('Welcome to testapp!')`, `cy.window().its('GRAPHQL_VERSION').should('equal', ${version})`, ); diff --git a/scripts/run-e2e-locally.sh b/scripts/run-e2e-locally.sh index 03e20e5b8..2c172764f 100755 --- a/scripts/run-e2e-locally.sh +++ b/scripts/run-e2e-locally.sh @@ -1,3 +1,10 @@ +#!/usr/bin/env bash + +set -xe + +yarn workspace apollo-angular build +(cd packages/apollo-angular/build && yarn pack --filename apollo-angular.tgz && mv apollo-angular.tgz ../apollo-angular.tgz) +yarn cache clean apollo-angular rm -rf testapp ng new testapp --package-manager yarn --defaults --minimal --skip-git (cd testapp && ng add ../packages/apollo-angular/apollo-angular.tgz --graphql '16.0.0' --defaults --verbose --skip-confirmation)