Skip to content

Commit

Permalink
test(docs-infra): add commands to run the unit tests (angular#34537)
Browse files Browse the repository at this point in the history
This commit adds the necessary custom commands to run the tests in a
node environment.

PR Close angular#34537
  • Loading branch information
sonukapoor authored and profanis committed Sep 5, 2020
1 parent 6432555 commit ed87fbe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
@@ -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 aio/content/examples/comparing-observables/example-config.json
@@ -0,0 +1,12 @@
{
"tests": [
{
"cmd": "yarn",
"args": ["tsc", "--project", "tsconfig.spec.json", "--module", "commonjs"]
},
{
"cmd": "yarn",
"args": ["jasmine", "out-tsc/**/*.spec.js"]
}
]
}

0 comments on commit ed87fbe

Please sign in to comment.