fix(bazel): fix integration test for bazel-schematics (#28460)

With the release of @angular/bazel v7.2.3, the npm install step right
after `ng new` installs this version. However there is a bug in the
builder which results in bazel executable not found.

This bug was not discovered before because the dependencies of the
project created by `ng new` are not pinned.

The fix is to pin the version of @angular/bazel to 7.2.2 which relies on
global installation of bazel.

PR Close #28460
This commit is contained in:
Keen Yee Liau 2019-01-30 15:20:24 -08:00 committed by Matias Niemelä
parent a9c881e243
commit b1e099b657
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ function testBazel() {
ng new demo --collection=@angular/bazel --defaults --skip-git --style=scss ng new demo --collection=@angular/bazel --defaults --skip-git --style=scss
node replace_angular_repo.js "./demo/WORKSPACE" node replace_angular_repo.js "./demo/WORKSPACE"
cd demo cd demo
# TODO(kyliau) pin @angular/bazel version to 7.2.2 due to builder bug in 7.2.3
yarn add @angular/bazel@7.2.2
cp ../package.json.replace ./package.json cp ../package.json.replace ./package.json
ng generate component widget --style=css ng generate component widget --style=css
ng build ng build