mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
86abe68849
**What kind of change does this PR introduce?** Adds Mocha as option for `ng-schematics` **Did you add tests for your changes?** Yes **If relevant, did you update the documentation?** No **Summary** User want a simple solution for the Testing library of their choose **Does this PR introduce a breaking change?** No **Other information** There are some improvements around the Babel that we can make so we don't have duplicate code and files (In a Feature PR) |
||
---|---|---|
.. | ||
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