puppeteer/packages/ng-schematics
dependabot[bot] 04c286d5a0
chore(deps): Bump @angular-devkit/schematics from 15.0.4 to 15.1.1 (#9517)
Bumps
[@angular-devkit/schematics](https://github.com/angular/angular-cli)
from 15.0.4 to 15.1.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/angular/angular-cli/releases"><code>@​angular-devkit/schematics</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v15.1.1</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h1>15.1.1 (2023-01-12)</h1>
<h3><code>@​angular-devkit/build-angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="b94bf60ca8"><img
src="https://img.shields.io/badge/b94bf60ca-fix-green" alt="fix -
b94bf60ca" /></a></td>
<td>update <code>esbuild</code> to <code>0.16.17</code></td>
</tr>
</tbody>
</table>
<h2>Special Thanks</h2>
<p>Alan Agius</p>
<h2>v15.1.0</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h1>15.1.0 (2023-01-11)</h1>
<h2>Deprecations</h2>
<h3><code>@​angular-devkit/schematics</code></h3>
<ul>
<li>The Observable based
<code>SchematicTestRunner.runSchematicAsync</code> and
<code>SchematicTestRunner.runExternalSchematicAsync</code> method have
been deprecated in favor of the Promise based
<code>SchematicTestRunner.runSchematic</code> and
<code>SchematicTestRunner.runExternalSchematic</code>.</li>
</ul>
<h3><code>@​schematics/angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="5b18ce1545"><img
src="https://img.shields.io/badge/5b18ce154-feat-blue" alt="feat -
5b18ce154" /></a></td>
<td>add <code>guardType</code> as an alias of <code>implements</code> in
guard schematic</td>
</tr>
<tr>
<td><a
href="dd2b65943d"><img
src="https://img.shields.io/badge/dd2b65943-feat-blue" alt="feat -
dd2b65943" /></a></td>
<td>add configuration files generation schematic</td>
</tr>
<tr>
<td><a
href="8d000d1563"><img
src="https://img.shields.io/badge/8d000d156-feat-blue" alt="feat -
8d000d156" /></a></td>
<td>add environments generation schematic</td>
</tr>
<tr>
<td><a
href="6c39a162be"><img
src="https://img.shields.io/badge/6c39a162b-feat-blue" alt="feat -
6c39a162b" /></a></td>
<td>Add schematics for generating functional router guards and
resolvers</td>
</tr>
<tr>
<td><a
href="62121f89ab"><img
src="https://img.shields.io/badge/62121f89a-feat-blue" alt="feat -
62121f89a" /></a></td>
<td>add sideEffects:false to library package.json</td>
</tr>
<tr>
<td><a
href="9299dea649"><img
src="https://img.shields.io/badge/9299dea64-feat-blue" alt="feat -
9299dea64" /></a></td>
<td>generate functional interceptors</td>
</tr>
<tr>
<td><a
href="49b313f27a"><img
src="https://img.shields.io/badge/49b313f27-fix-green" alt="fix -
49b313f27" /></a></td>
<td>add missing import for functional interceptor spec</td>
</tr>
<tr>
<td><a
href="2f92fe7e58"><img
src="https://img.shields.io/badge/2f92fe7e5-fix-green" alt="fix -
2f92fe7e5" /></a></td>
<td>add missing semicolon in functional guard/resolver/interceptor</td>
</tr>
<tr>
<td><a
href="9b6d190f4a"><img
src="https://img.shields.io/badge/9b6d190f4-fix-green" alt="fix -
9b6d190f4" /></a></td>
<td>remove EnvironmentInjector import in functional guard spec</td>
</tr>
<tr>
<td><a
href="b11d3f6442"><img
src="https://img.shields.io/badge/b11d3f644-fix-green" alt="fix -
b11d3f644" /></a></td>
<td>use proper variable in functional guard spec</td>
</tr>
<tr>
<td><a
href="451975f765"><img
src="https://img.shields.io/badge/451975f76-fix-green" alt="fix -
451975f76" /></a></td>
<td>use proper variable in resolver functional spec</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="c29df69546"><img
src="https://img.shields.io/badge/c29df6954-feat-blue" alt="feat -
c29df6954" /></a></td>
<td>add <code>assets</code> option to server builder</td>
</tr>
<tr>
<td><a
href="839d0cb57a"><img
src="https://img.shields.io/badge/839d0cb57-feat-blue" alt="feat -
839d0cb57" /></a></td>
<td>implement stats-json option for esbuild builder</td>
</tr>
<tr>
<td><a
href="216991b9d9"><img
src="https://img.shields.io/badge/216991b9d-feat-blue" alt="feat -
216991b9d" /></a></td>
<td>support inline component Sass styles with esbuild builder</td>
</tr>
<tr>
<td><a
href="7c87ce47c6"><img
src="https://img.shields.io/badge/7c87ce47c-fix-green" alt="fix -
7c87ce47c" /></a></td>
<td>ensure Sass load paths are resolved from workspace root</td>
</tr>
<tr>
<td><a
href="7a063238b8"><img
src="https://img.shields.io/badge/7a063238b-fix-green" alt="fix -
7a063238b" /></a></td>
<td>explicitly send options to JS transformer workers</td>
</tr>
<tr>
<td><a
href="22cba79370"><img
src="https://img.shields.io/badge/22cba7937-fix-green" alt="fix -
22cba7937" /></a></td>
<td>provide an option to <code>exclude</code> specs in Karma
builder</td>
</tr>
<tr>
<td><a
href="20376649c5"><img
src="https://img.shields.io/badge/20376649c-fix-green" alt="fix -
20376649c" /></a></td>
<td>transform async generator class methods for Zone.js support</td>
</tr>
<tr>
<td><a
href="0520608f68"><img
src="https://img.shields.io/badge/0520608f6-fix-green" alt="fix -
0520608f6" /></a></td>
<td>use relative css resource paths in esbuild JSON stats</td>
</tr>
<tr>
<td><a
href="0c01532cb5"><img
src="https://img.shields.io/badge/0c01532cb-perf-orange" alt="perf -
0c01532cb" /></a></td>
<td>use worker pool for JavaScript transforms in esbuild builder</td>
</tr>
</tbody>
</table>
<h3><code>@​angular-devkit/schematics</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="207358afb8"><img
src="https://img.shields.io/badge/207358afb-feat-blue" alt="feat -
207358afb" /></a></td>
<td>add <code>runSchematic</code> and <code>runExternalSchematic</code>
methods</td>
</tr>
</tbody>
</table>
<h2>Special Thanks</h2>
<p>Alan Agius, Andrew Scott, Charles Lyding, Cédric Exbrayat, Doug
Parker, Felix Hamann, Jason Bedard, Joey Perrott and Kristiyan
Kostadinov</p>
<h2>v15.1.0-rc.0</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/angular/angular-cli/blob/main/CHANGELOG.md"><code>@​angular-devkit/schematics</code>'s
changelog</a>.</em></p>
<blockquote>
<h1>15.1.1 (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="b94bf60ca8">b94bf60ca</a></td>
<td>fix</td>
<td>update <code>esbuild</code> to <code>0.16.17</code></td>
</tr>
</tbody>
</table>
<h2>Special Thanks</h2>
<p>Alan Agius</p>
<!-- raw HTML omitted -->
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h1>15.1.0 (2023-01-11)</h1>
<h2>Deprecations</h2>
<h3><code>@​angular-devkit/schematics</code></h3>
<ul>
<li>The Observable based
<code>SchematicTestRunner.runSchematicAsync</code> and
<code>SchematicTestRunner.runExternalSchematicAsync</code> method have
been deprecated in favor of the Promise based
<code>SchematicTestRunner.runSchematic</code> and
<code>SchematicTestRunner.runExternalSchematic</code>.</li>
</ul>
<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="5b18ce1545">5b18ce154</a></td>
<td>feat</td>
<td>add <code>guardType</code> as an alias of <code>implements</code> in
guard schematic</td>
</tr>
<tr>
<td><a
href="dd2b65943d">dd2b65943</a></td>
<td>feat</td>
<td>add configuration files generation schematic</td>
</tr>
<tr>
<td><a
href="8d000d1563">8d000d156</a></td>
<td>feat</td>
<td>add environments generation schematic</td>
</tr>
<tr>
<td><a
href="6c39a162be">6c39a162b</a></td>
<td>feat</td>
<td>Add schematics for generating functional router guards and
resolvers</td>
</tr>
<tr>
<td><a
href="62121f89ab">62121f89a</a></td>
<td>feat</td>
<td>add sideEffects:false to library package.json</td>
</tr>
<tr>
<td><a
href="9299dea649">9299dea64</a></td>
<td>feat</td>
<td>generate functional interceptors</td>
</tr>
<tr>
<td><a
href="49b313f27a">49b313f27</a></td>
<td>fix</td>
<td>add missing import for functional interceptor spec</td>
</tr>
<tr>
<td><a
href="2f92fe7e58">2f92fe7e5</a></td>
<td>fix</td>
<td>add missing semicolon in functional guard/resolver/interceptor</td>
</tr>
<tr>
<td><a
href="9b6d190f4a">9b6d190f4</a></td>
<td>fix</td>
<td>remove EnvironmentInjector import in functional guard spec</td>
</tr>
<tr>
<td><a
href="b11d3f6442">b11d3f644</a></td>
<td>fix</td>
<td>use proper variable in functional guard spec</td>
</tr>
<tr>
<td><a
href="451975f765">451975f76</a></td>
<td>fix</td>
<td>use proper variable in resolver functional spec</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="c29df69546">c29df6954</a></td>
<td>feat</td>
<td>add <code>assets</code> option to server builder</td>
</tr>
<tr>
<td><a
href="839d0cb57a">839d0cb57</a></td>
<td>feat</td>
<td>implement stats-json option for esbuild builder</td>
</tr>
<tr>
<td><a
href="216991b9d9">216991b9d</a></td>
<td>feat</td>
<td>support inline component Sass styles with esbuild builder</td>
</tr>
<tr>
<td><a
href="7c87ce47c6">7c87ce47c</a></td>
<td>fix</td>
<td>ensure Sass load paths are resolved from workspace root</td>
</tr>
<tr>
<td><a
href="7a063238b8">7a063238b</a></td>
<td>fix</td>
<td>explicitly send options to JS transformer workers</td>
</tr>
<tr>
<td><a
href="22cba79370">22cba7937</a></td>
<td>fix</td>
<td>provide an option to <code>exclude</code> specs in Karma
builder</td>
</tr>
</tbody>
</table>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="a8953ffe77"><code>a8953ff</code></a>
release: cut the v15.1.1 release</li>
<li><a
href="4ba55e4655"><code>4ba55e4</code></a>
refactor: change <code>JSONFile</code> to private instead of
internal</li>
<li><a
href="6dd88b4705"><code>6dd88b4</code></a>
build: update <code>eslint-plugin-import</code> to
<code>2.27.4</code></li>
<li><a
href="b94bf60ca8"><code>b94bf60</code></a>
fix(<code>@​angular-devkit/build-angular</code>): update
<code>esbuild</code> to <code>0.16.17</code></li>
<li><a
href="d6583e584f"><code>d6583e5</code></a>
docs(<code>@​angular/cli</code>): add ng new long description</li>
<li><a
href="ea64defb0b"><code>ea64def</code></a>
release: cut the v15.1.0 release</li>
<li><a
href="7731588f9a"><code>7731588</code></a>
build: update angular packages for 15.1.0 release</li>
<li><a
href="d41b741ea9"><code>d41b741</code></a>
build: lock file maintenance</li>
<li><a
href="0520608f68"><code>0520608</code></a>
fix(<code>@​angular-devkit/build-angular</code>): use relative css
resource paths in esbuil...</li>
<li><a
href="22cba79370"><code>22cba79</code></a>
fix(<code>@​angular-devkit/build-angular</code>): provide an option to
<code>exclude</code> specs in K...</li>
<li>Additional commits viewable in <a
href="https://github.com/angular/angular-cli/compare/15.0.4...15.1.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@angular-devkit/schematics&package-manager=npm_and_yarn&previous-version=15.0.4&new-version=15.1.1)](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: Kian-Meng Ang <kianmeng.ang@gmail.com>
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
2023-01-17 15:10:39 +01: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/schematics from 15.0.4 to 15.1.1 (#9517) 2023-01-17 15:10:39 +01: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