Skip to content

Commit 29ace22

Browse files
committed
build(docs-infra): renamed e2e property of example-config.json to tests
Each docs example has an `example-config.json` configuration file. Among other things, this file can be used to specify what commands to run in order to test the example. (If not specified, the `run-example-e2e.js` script will run a default `yarn e2e` command.) Previously, the property specifying the test commands was called `e2e`. This is because in the past only e2e tests were run for docs examples. Since recently, some examples may specify commands for other types of tests (such as unit tests). Therefore, calling the property that holds the list of test commands `e2e` no longer makes sense and can be misleading to people looking at the configuration files. This commit renamed the property to the more generic `tests`. In the future, the `run-example-e2e.js` script (and corresponding npm script) should be renamed and refactored to also avoid giving the impression that only e2e tests are run. Discussed in: #36143 (comment)
1 parent f267b3f commit 29ace22

13 files changed

Lines changed: 14 additions & 14 deletions

File tree

aio/content/examples/component-interaction/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"e2e": [
2+
"tests": [
33
{
44
"cmd": "yarn",
55
"args": [

aio/content/examples/forms-overview/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"e2e": [
2+
"tests": [
33
{"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]},
44
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}
55
]

aio/content/examples/http/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"projectType": "testing",
3-
"e2e": [
3+
"tests": [
44
{"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]},
55
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}
66
]

aio/content/examples/i18n/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"projectType": "i18n",
3-
"e2e": [
3+
"tests": [
44
{
55
"cmd": "yarn",
66
"args": [

aio/content/examples/observables-in-angular/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"e2e": [
2+
"tests": [
33
{
44
"cmd": "yarn",
55
"args": [ "tsc", "--project", "./tsconfig.app.json" ]

aio/content/examples/observables/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"e2e": [
2+
"tests": [
33
{
44
"cmd": "yarn",
55
"args": [ "tsc", "--project", "./tsconfig.app.json" ]

aio/content/examples/practical-observable-usage/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"e2e": [
2+
"tests": [
33
{
44
"cmd": "yarn",
55
"args": [ "tsc", "--project", "./tsconfig.app.json" ]

aio/content/examples/rx-library/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"e2e": [
2+
"tests": [
33
{
44
"cmd": "yarn",
55
"args": [ "tsc", "--project", "./tsconfig.app.json" ]

aio/content/examples/service-worker-getting-started/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"projectType": "service-worker",
3-
"e2e": [
3+
"tests": [
44
{"cmd": "yarn", "args": ["e2e", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]},
55
{"cmd": "yarn", "args": ["build", "--prod"]},
66
{"cmd": "node", "args": ["--eval", "assert(fs.existsSync('./dist/ngsw.json'), 'ngsw.json is missing')"]},

aio/content/examples/setup/example-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"e2e": [
2+
"tests": [
33
{"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]},
44
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}
55
]

0 commit comments

Comments
 (0)