From f6db9521ab54845c2a0978404f4edea52dbfa410 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 11 Jan 2018 15:40:27 +0200 Subject: [PATCH] ci(aio): run e2e tests in `production` mode (#21470) This will enable catching errors introduced by build optimizations that do not appear in `development` mode. Fixes #21446 PR Close #21470 --- aio/package.json | 1 + scripts/ci/test-aio.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/aio/package.json b/aio/package.json index 5d2e730d75..8c24e7de04 100644 --- a/aio/package.json +++ b/aio/package.json @@ -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", diff --git a/scripts/ci/test-aio.sh b/scripts/ci/test-aio.sh index 6f4a143b9a..033cdba4bc 100755 --- a/scripts/ci/test-aio.sh +++ b/scripts/ci/test-aio.sh @@ -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"