puppeteer/packages/ng-schematics
dependabot[bot] 6bee9a09c4
chore(deps): Bump @angular-devkit/core from 15.1.1 to 15.1.2 (#9542)
Bumps [@angular-devkit/core](https://github.com/angular/angular-cli)
from 15.1.1 to 15.1.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/angular/angular-cli/releases"><code>@​angular-devkit/core</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v15.1.2</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h1>15.1.2 (2023-01-18)</h1>
<h3><code>@​schematics/angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="0f5fb7e594"><img
src="https://img.shields.io/badge/0f5fb7e59-fix-green" alt="fix -
0f5fb7e59" /></a></td>
<td>replace existing <code>BrowserModule.withServerTransition</code>
calls when running universal schematic</td>
</tr>
</tbody>
</table>
<h3><code>@​angular/cli</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="387472a956"><img
src="https://img.shields.io/badge/387472a95-fix-green" alt="fix -
387472a95" /></a></td>
<td>register schematic aliases when providing collection name in
<code>ng generate</code></td>
</tr>
<tr>
<td><a
href="5d9fd788a9"><img
src="https://img.shields.io/badge/5d9fd788a-fix-green" alt="fix -
5d9fd788a" /></a></td>
<td>remove <code>--to</code> option from being required when using
<code>--from</code> in <code>ng update</code></td>
</tr>
</tbody>
</table>
<h3><code>@​angular-devkit/build-angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="bf4639a6e9"><img
src="https://img.shields.io/badge/bf4639a6e-fix-green" alt="fix -
bf4639a6e" /></a></td>
<td>prevent hanging initial build during exception with esbuild</td>
</tr>
</tbody>
</table>
<h2>Special Thanks</h2>
<p>Alan Agius, Charles Lyding and Doug Parker</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/angular/angular-cli/blob/main/CHANGELOG.md"><code>@​angular-devkit/core</code>'s
changelog</a>.</em></p>
<blockquote>
<h1>15.1.2 (2023-01-18)</h1>
<h3><code>@​angular/cli</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="387472a956">387472a95</a></td>
<td>fix</td>
<td>register schematic aliases when providing collection name in
<code>ng generate</code></td>
</tr>
<tr>
<td><a
href="5d9fd788a9">5d9fd788a</a></td>
<td>fix</td>
<td>remove <code>--to</code> option from being required when using
<code>--from</code> in <code>ng update</code></td>
</tr>
</tbody>
</table>
<h3><code>@​schematics/angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="0f5fb7e594">0f5fb7e59</a></td>
<td>fix</td>
<td>replace existing <code>BrowserModule.withServerTransition</code>
calls when running universal schematic</td>
</tr>
</tbody>
</table>
<h3><code>@​angular-devkit/build-angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="bf4639a6e9">bf4639a6e</a></td>
<td>fix</td>
<td>prevent hanging initial build during exception with esbuild</td>
</tr>
</tbody>
</table>
<h2>Special Thanks</h2>
<p>Alan Agius, Charles Lyding and Doug Parker</p>
<!-- raw HTML omitted -->
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h1>15.2.0-next.0 (2023-01-12)</h1>
<h3><code>@​angular-devkit/build-angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="09af707438">09af70743</a></td>
<td>feat</td>
<td>implement node module license extraction for esbuild builder</td>
</tr>
</tbody>
</table>
<h2>Special Thanks</h2>
<p>Alan Agius and Charles Lyding</p>
<!-- raw HTML omitted -->
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="97b443b2fd"><code>97b443b</code></a>
release: cut the v15.1.2 release</li>
<li><a
href="0f5fb7e594"><code>0f5fb7e</code></a>
fix(<code>@​schematics/angular</code>): replace existing
`BrowserModule.withServerTransitio...</li>
<li><a
href="bc5555ca3c"><code>bc5555c</code></a>
refactor: only collect Node version if it's a standard version
string</li>
<li><a
href="bf4639a6e9"><code>bf4639a</code></a>
fix(<code>@​angular-devkit/build-angular</code>): prevent hanging
initial build during exce...</li>
<li><a
href="387472a956"><code>387472a</code></a>
fix(<code>@​angular/cli</code>): register schematic aliases when
providing collection name ...</li>
<li><a
href="b0004817c5"><code>b000481</code></a>
build: update dev-infra packages</li>
<li><a
href="5d9fd788a9"><code>5d9fd78</code></a>
fix(<code>@​angular/cli</code>): remove <code>--to</code> option from
being required when using `--fro...</li>
<li><a
href="9fa5f2ce0c"><code>9fa5f2c</code></a>
refactor(<code>@​angular-devkit/build-angular</code>): remove direct
import of i18n worker ...</li>
<li><a
href="4b594992e9"><code>4b59499</code></a>
build: update dependency ng-packagr to v15.1.1</li>
<li>See full diff in <a
href="https://github.com/angular/angular-cli/compare/15.1.1...15.1.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@angular-devkit/core&package-manager=npm_and_yarn&previous-version=15.1.1&new-version=15.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 10:58:08 +00:00
..
src chore(ng-schematics): Spawn server when running ng e2e (#9306) 2022-11-23 13:10:03 +01:00
test/src chore(ng-schematics): Spawn server when running ng e2e (#9306) 2022-11-23 13:10:03 +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
CHANGELOG.md chore: release main (#9313) 2022-11-23 14:14:25 +01:00
copySchemaFiles.js chore(ng-schematics): Add Angular Schematics (#9222) 2022-11-09 14:52:10 +01:00
package-lock.json chore: release main (#9313) 2022-11-23 14:14:25 +01:00
package.json chore(deps): Bump @angular-devkit/core from 15.1.1 to 15.1.2 (#9542) 2023-01-20 10:58:08 +00:00
README.md docs: fix typos (#9476) 2023-01-16 20:25:09 +01:00
tsconfig.json chore(ng-schematics): Use WireIt for builds and tests (#9356) 2022-12-05 10:35:31 +01:00
tsconfig.spec.json chore(ng-schematics): Use WireIt for builds and tests (#9356) 2022-12-05 10:35:31 +01:00

Puppeteer Angular Schematic

Adds Puppeteer-based e2e tests to your Angular project.

Usage

Run the command below in an Angular CLI app directory and follow the prompts. Note this will add the schematic as a dependency to your project.

ng add @puppeteer/ng-schematics

Or you can use the same command followed by the options below.

Currently, this schematic supports the following test frameworks:

With the schematics installed you can run E2E tests:

ng e2e

Note: Command spawns it's own server on the same port ng serve does.

Options

When adding schematics to your project you can to provide following options:

Option Description Value Required
--isDefaultTester When true, replaces default ng e2e command. boolean true
--exportConfig When true, creates an empty Puppeteer configuration file. (.puppeteerrc.cjs) boolean true
--testingFramework The testing framework to install along side Puppeteer. "jasmine", "jest", "mocha", "node" true

Contributing

Check out our contributing guide to get an overview of what you need to develop in the Puppeteer repo.

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