Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Aug 6, 2024
1 parent fda8509 commit b108a98
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/apollo-angular/schematics/install/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function factory(options: Schema): Rule {

export function createDependenciesMap(options: Schema): Record<string, string> {
return {
'apollo-angular': '^4.2.0',
'apollo-angular': '^7.0.0',
'@apollo/client': '^3.0.0',
graphql: `^${options.graphql ?? '16.0.0'}`,
};
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function updateCypress() {
const code = fs
.readFileSync(filepath, 'utf8')
.replace(
`cy.contains('app is running!')`,
`cy.contains('app is running')`,
`cy.window().its('GRAPHQL_VERSION').should('equal', ${version})`,
);

Expand Down
7 changes: 7 additions & 0 deletions scripts/run-e2e-locally.sh
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit b108a98

Please sign in to comment.