mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
57f7366eb8
**What kind of change does this PR introduce?** It lets Users create an schematic for Puppeteer in Angular project using Node's new test runner. **Did you add tests for your changes?** Yes. Unit test for module. **If relevant, did you update the documentation?** No **Summary** **Does this PR introduce a breaking change?** No **Other information** |
||
---|---|---|
.. | ||
src/schematics | ||
test/src | ||
.eslintignore | ||
.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