angular-cn/aio/content/examples/upgrade-phonecat-3-final
George Kalpakas d707124fd9 test(docs-infra): fix unit tests and run them for specific docs examples on CI (#36143)
Previously, only e2e tests were run for docs examples on CI. As a
result, unit tests (which are included in the zipped archives we provide
for users to download and play with the examples locally) were often
outdated and broken.

This commit configures specific docs examples that have meaningful unit
tests to run them on CI (via the `run-example-e2e.js` script). Where
necessary, the unit tests are fixed to ensure they pass and reflect the
changes in the corresponding component/service.
This commit also removes some auto-generated unit tests that are not
meaningful (e.g. make trivial assertions, such that a component instance
is truthy) and are often broken anyway (e.g. because the corresponding
component has been changed in ways that make the tests fail).

PR Close #36143
2020-04-06 15:31:07 -07:00
..
app docs: migrate examples from @angular/http to @angular/common/http (#28296) 2019-03-11 10:52:17 -07:00
README.md test(docs-infra): fix unit tests and run them for specific docs examples on CI (#36143) 2020-04-06 15:31:07 -07:00
e2e-spec.ts docs(aio): rework of the upgrade guide 2017-05-19 09:42:17 +01:00
example-config.json build(aio): change examples to CLI (#19248) 2017-09-21 17:05:54 -07:00
index.html docs(aio): rework of the upgrade guide 2017-05-19 09:42:17 +01:00
karma-test-shim.js docs: migrate examples from @angular/http to @angular/common/http (#28296) 2019-03-11 10:52:17 -07:00
karma.conf.js fixup! docs: update Universal guide (#28296) 2019-03-11 10:52:18 -07:00
systemjs.config.1.js docs: migrate examples from @angular/http to @angular/common/http (#28296) 2019-03-11 10:52:17 -07:00
tsconfig.json build(docs-infra): switch docs examples to Ivy (#36143) 2020-04-06 15:31:07 -07:00

README.md

This is the Angular Phonecat application adjusted to fit our boilerplate project structure.

The following changes from vanilla Phonecat are applied:

  • E2E tests have been moved to the parent directory, where run-e2e-tests can discover and run them along with all the other examples.
  • Most of the phone JSON and image data removed in the interest of keeping repo weight down. Keeping enough to retain testability of the app.

Running the app

Start like any example

npm run start

Running E2E tests

Like for any example (at the project root):

gulp run-e2e-tests --filter=phonecat-3