forked from angular/angular
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(docs-infra): add commands to run the unit tests (angular#34537)
This commit adds the necessary custom commands to run the tests in a node environment. PR Close angular#34537
- Loading branch information
1 parent
6432555
commit ed87fbe
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
aio/content/examples/comparing-observables/e2e/src/app.e2e-spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* This example project is special in that it is not a cli app. To run tests appropriate for this | ||
* project, the test command is overwritten in `aio/content/examples/observables/example-config.json`. | ||
* | ||
* This is an empty placeholder file to ensure that `aio/tools/examples/run-example-e2e.js` runs | ||
* tests for this project. | ||
* | ||
* TODO: Fix our infrastructure/tooling, so that this hack is not necessary. | ||
*/ |
12 changes: 12 additions & 0 deletions
12
aio/content/examples/comparing-observables/example-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"tests": [ | ||
{ | ||
"cmd": "yarn", | ||
"args": ["tsc", "--project", "tsconfig.spec.json", "--module", "commonjs"] | ||
}, | ||
{ | ||
"cmd": "yarn", | ||
"args": ["jasmine", "out-tsc/**/*.spec.js"] | ||
} | ||
] | ||
} |