Skip to content
This repository was archived by the owner on Sep 16, 2018. It is now read-only.

Commit dcd9a8a

Browse files
committed
doc(install): add additonal install method
1 parent d1486c5 commit dcd9a8a

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
11
# Jest Angular Schematic
22

3+
Add [Jest](https://facebook.github.io/jest/) to an Angular 6 project
4+
35
## Usage 🚀
46

5-
Add [Jest](https://facebook.github.io/jest/) to an Angular 6 project. Inside a Angular CLI app directory:
7+
Install globally
68

79
```shell
8-
ng add @briebug/jest
10+
npm install -g @briebug/jest
11+
```
12+
13+
Then in an Angular CLI project run
14+
15+
```shel
16+
ng g @briebug/jest:jest
917
```
1018

11-
This command will:
19+
This schematic will:
1220

1321
- install Jest, it's dependencies, and scripts
1422
- add necessary files for Jest to work with Angular
1523
- remove unnecessary Karma files and configuration
1624

1725
![ng-add-jest](docs/ng-add-jest.gif)
1826

27+
Optionally run as one command in an Angular CLI app directory. Note this will add the schematic as a dependency to your project.
28+
29+
```shell
30+
ng add @briebug/jest
31+
```
32+
1933
## Development 🛠
2034

2135
### Getting started

0 commit comments

Comments
 (0)