Skip to content

Commit

Permalink
ci(aio): run e2e tests in production mode (angular#21470)
Browse files Browse the repository at this point in the history
This will enable catching errors introduced by build optimizations that
do not appear in `development` mode.

Fixes angular#21446

PR Close angular#21470
  • Loading branch information
gkalpak authored and leo6104 committed Mar 25, 2018
1 parent 4c4bbfb commit 2297007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions aio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"test": "yarn check-env && ng test",
"pree2e": "yarn check-env && yarn ~~update-webdriver",
"e2e": "ng e2e --no-webdriver-update",
"e2e-prod": "yarn e2e --environment=dev --target=production",
"preinstall": "node ../tools/yarn/check-yarn.js",
"presetup": "yarn install --frozen-lockfile && yarn ~~check-env && yarn boilerplate:remove",
"setup": "yarn aio-use-npm && yarn example-use-npm",
Expand Down
3 changes: 2 additions & 1 deletion scripts/ci/test-aio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ source ${thisDir}/_travis-fold.sh

# Run e2e tests
travisFoldStart "test.aio.e2e"
yarn e2e
# Use `production` mode to catch issues introduced by build optimizations.
yarn e2e-prod
travisFoldEnd "test.aio.e2e"


Expand Down

0 comments on commit 2297007

Please sign in to comment.