3f2c0590f1
**What kind of change does this PR introduce?** It introduces schematic for Angular that integrate with its CLI. First revision support Jasmine. **Did you add tests for your changes?** Added Unit tests for each scenario. **Summary** The idea is to provide a an example for setting up Puppeteer and Angular for testing user flows. **Does this PR introduce a breaking change?** No **Other information** For Feature PRs: - Introduce CL for tests - Hook up NPM package publishing - Update README.md
583 B
583 B
Puppeteer Schematics Angular
This schematics provide a simple set up of Puppeteer for an Angular project.
Usage
Run the command in an Angular CLI app directory. Note this will add the schematic as a dependency to your project.
ng add puppetter-schematics
With the schematics installed, you can run E2E tests with your chose:
npm run e2e
# or yarn e2e
Unit Testing
The schematics utilize @angular-devkit/schematics/testing
for verifying correct file creation and package.json
updates. To execute the test suit:
npm run test