From 49e2fb54be29586b72a4b7bc8dcbf8fa1a6f30ab Mon Sep 17 00:00:00 2001 From: Max <contact@mstoiber.com> Date: Thu, 21 Jul 2016 12:29:18 +0200 Subject: [PATCH] Test local commands --- tasks/e2e.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/e2e.sh b/tasks/e2e.sh index e2dbf6ce3..908a5cfb6 100755 --- a/tasks/e2e.sh +++ b/tasks/e2e.sh @@ -33,6 +33,16 @@ scripts_path=$PWD/`npm pack` # lint ./node_modules/.bin/eslint --ignore-path .gitignore ./ +# Test local start command +npm start -- --smoke-test + +# Test local build command +npm run build + +# Check for expected output +test -e build/*.html || exit 1 +test -e build/*.js || exit 1 + # Pack CLI cd global-cli npm install -- GitLab