mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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
28 lines
583 B
Markdown
28 lines
583 B
Markdown
# 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._
|
|
|
|
```bash
|
|
ng add puppetter-schematics
|
|
```
|
|
|
|
With the schematics installed, you can run E2E tests with your chose:
|
|
|
|
```bash
|
|
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:
|
|
|
|
```bash
|
|
npm run test
|
|
```
|