mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build(docs-infra): switch the example-e2e script to ESM (#42921)
Switch the JS script used for running the docs examples tests from CommonJS to ESM format. This is necessary for upgrading the `globby` dependency to [version 12.0.0][1] in a subsequent commit. [1]: https://github.com/sindresorhus/globby/releases/v12.0.0 PR Close #42921
This commit is contained in:
committed by
Dylan Hunn
parent
662addb355
commit
19da73741d
@@ -135,9 +135,9 @@ It will remove all files that are not tracked by git, **including any new files
|
||||
So, be sure to commit your work before removing the boilerplate.
|
||||
|
||||
|
||||
### `run-example-e2e.js`
|
||||
### `run-example-e2e.mjs`
|
||||
|
||||
The [run-example-e2e.js](./run-example-e2e.js) script will find and run the e2e tests for all examples.
|
||||
The [run-example-e2e.mjs](./run-example-e2e.mjs) script will find and run the e2e tests for all examples.
|
||||
Although it only runs e2e tests by default, it can be configured to run any test command (for CLI-based examples) by using the `tests` property of the [example-config.json](#example-config) file.
|
||||
It is named `*-e2e` for historical reasons, but it is not limited to running e2e tests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user