Add checks for expected output to e2e test

This commit is contained in:
Dan Abramov
2016-07-20 13:15:37 +01:00
parent c46fb9b498
commit fbcbd67b9d

View File

@@ -39,10 +39,18 @@ cd test-app
# Test the build
npm run build
# Check for expected output
test -e build/*.html || exit 1
test -e build/*.js || exit 1
# Eject and test the build
echo yes | npm run eject
npm run build
# Check for expected output
test -e build/*.html || exit 1
test -e build/*.js || exit 1
# Cleanup
cd $initial_path
rm -rf $temp_cli_path $temp_app_path