Skip to content

Instantly share code, notes, and snippets.

@lovubuntu
Last active January 16, 2019 10:03
Show Gist options
  • Save lovubuntu/825cd9b2a8f08d424c581aab0cfc59a0 to your computer and use it in GitHub Desktop.
Save lovubuntu/825cd9b2a8f08d424c581aab0cfc59a0 to your computer and use it in GitHub Desktop.
Updated package file with scripts to run unit and e2e tests in headless mode
{
"name": "angular-with-ci-cd",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"test_headless": "ng test --watch false --browsers ChromeHeadless",
"e2e_headless": "ng e2e --protractor-config='e2e/ci.protractor.conf.js'",
"all_tests": "yarn lint && yarn test_headless && yarn e2e_headless"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment