Skip to content

Commit 8aa5ddf

Browse files
update readme
1 parent 45c1723 commit 8aa5ddf

File tree

1 file changed

+6
-77
lines changed

1 file changed

+6
-77
lines changed

README.md

Lines changed: 6 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,27 @@
11
# AngularTesting
22

3-
This project was generated using [Nx](https://nx.dev).
4-
5-
<p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="450"></p>
6-
7-
🔎 **Nx is a set of Extensible Dev Tools for Monorepos.**
8-
9-
## Quick Start & Documentation
10-
11-
[Nx Documentation](https://nx.dev/angular)
12-
13-
[10-minute video showing all Nx features](https://nx.dev/angular/getting-started/what-is-nx)
14-
15-
[Interactive Tutorial](https://nx.dev/angular/tutorial/01-create-application)
16-
17-
## Adding capabilities to your workspace
18-
19-
Nx supports many plugins which add capabilities for developing different types of applications and different tools.
20-
21-
These capabilities include generating applications, libraries, etc as well as the devtools to test, and build projects as well.
22-
23-
Below are our core plugins:
24-
25-
- [Angular](https://angular.io)
26-
- `ng add @nrwl/angular`
27-
- [React](https://reactjs.org)
28-
- `ng add @nrwl/react`
29-
- Web (no framework frontends)
30-
- `ng add @nrwl/web`
31-
- [Nest](https://nestjs.com)
32-
- `ng add @nrwl/nest`
33-
- [Express](https://expressjs.com)
34-
- `ng add @nrwl/express`
35-
- [Node](https://nodejs.org)
36-
- `ng add @nrwl/node`
37-
38-
There are also many [community plugins](https://nx.dev/nx-community) you could add.
39-
40-
## Generate an application
41-
42-
Run `ng g @nrwl/angular:app my-app` to generate an application.
43-
44-
> You can use any of the plugins above to generate applications as well.
45-
46-
When using Nx, you can create multiple applications and libraries in the same workspace.
47-
48-
## Generate a library
49-
50-
Run `ng g @nrwl/angular:lib my-lib` to generate a library.
51-
52-
> You can also use any of the plugins above to generate libraries as well.
53-
54-
Libraries are sharable across libraries and applications. They can be imported from `@angular-testing/mylib`.
3+
The goal of this repository is to have a collection of common testing scenarios with Angular and to demonstrate different testing layers in [Testing Pyramid](https://martinfowler.com/articles/microservice-testing/#conclusion-test-pyramid) or [Testing Trophy](https://kentcdodds.com/blog/unit-vs-integration-vs-e2e-tests) with Angular. I'm happy for every contribution/suggestion 😃.
554

565
## Development server
576

58-
Run `ng serve my-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
59-
60-
## Code scaffolding
61-
62-
Run `ng g component my-component --project=my-app` to generate a new component.
7+
Run `ng serve` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
638

649
## Build
6510

66-
Run `ng build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
11+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
6712

6813
## Running unit tests
6914

70-
Run `ng test my-app` to execute the unit tests via [Jest](https://jestjs.io).
15+
Run `ng test` to execute the unit tests via [Jest](https://jestjs.io).
7116

7217
Run `nx affected:test` to execute the unit tests affected by a change.
7318

7419
## Running end-to-end tests
7520

76-
Run `ng e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
21+
Run `ng e2e` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
7722

7823
Run `nx affected:e2e` to execute the end-to-end tests affected by a change.
7924

8025
## Understand your workspace
8126

82-
Run `nx dep-graph` to see a diagram of the dependencies of your projects.
83-
84-
## Further help
85-
86-
Visit the [Nx Documentation](https://nx.dev/angular) to learn more.
87-
88-
## ☁ Nx Cloud
89-
90-
### Computation Memoization in the Cloud
91-
92-
<p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-cloud-card.png"></p>
93-
94-
Nx Cloud pairs with Nx in order to enable you to build and test code more rapidly, by up to 10 times. Even teams that are new to Nx can connect to Nx Cloud and start saving time instantly.
95-
96-
Teams using Nx gain the advantage of building full-stack applications with their preferred framework alongside Nx’s advanced code generation and project dependency graph, plus a unified experience for both frontend and backend developers.
97-
98-
Visit [Nx Cloud](https://nx.app/) to learn more.
27+
Run `nx dep-graph` to see a diagram of the dependencies of your projects.

0 commit comments

Comments
 (0)