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 |
||
---|---|---|
.. | ||
src/schematics | ||
test/src | ||
.gitignore | ||
.mocharc.cjs | ||
copySchemaFiles.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
tsconfig.spec.json |
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