puppeteer/packages/ng-schematics
Nikolay Vitkov 57f7366eb8
chore: Add Node testing option in ng-schematics (#9266)
**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**
2022-11-14 12:57:42 +01:00
..
src/schematics chore: Add Node testing option in ng-schematics (#9266) 2022-11-14 12:57:42 +01:00
test/src chore: Add Node testing option in ng-schematics (#9266) 2022-11-14 12:57:42 +01:00
.eslintignore chore: Add Jest as a ng-schematics option (#9257) 2022-11-11 14:38:52 +01:00
.gitignore chore(ng-schematics): Add Angular Schematics (#9222) 2022-11-09 14:52:10 +01:00
.mocharc.cjs chore(ng-schematics): Add Angular Schematics (#9222) 2022-11-09 14:52:10 +01:00
copySchemaFiles.js chore(ng-schematics): Add Angular Schematics (#9222) 2022-11-09 14:52:10 +01:00
package-lock.json chore(ng-schematics): Add Angular Schematics (#9222) 2022-11-09 14:52:10 +01:00
package.json chore: Add Jest as a ng-schematics option (#9257) 2022-11-11 14:38:52 +01:00
README.md chore(ng-schematics): Add Angular Schematics (#9222) 2022-11-09 14:52:10 +01:00
tsconfig.json chore(ng-schematics): Add Angular Schematics (#9222) 2022-11-09 14:52:10 +01:00
tsconfig.spec.json chore(ng-schematics): Add Angular Schematics (#9222) 2022-11-09 14:52:10 +01:00

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