Skip to content

Commit

Permalink
test(aio): run e2e tests in production mode
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 #21446
  • Loading branch information
gkalpak committed Jan 11, 2018
1 parent c6eb9ee commit 4fe1c34
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 4fe1c34

Please sign in to comment.