Skip to content

Commit

Permalink
Add a note about copying global mocks from example (#146)
Browse files Browse the repository at this point in the history
* Update README.md

Add globalMocks instructions

* Update README.md
  • Loading branch information
Tallyb authored and thymikee committed Apr 30, 2018
1 parent a87f006 commit 4a333af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import 'jest-preset-angular';
import './jestGlobalMocks'; // browser mocks globally available for every test
```

*Note: feel free to copy the `jestGlobalMocks.ts` file from the example directory and save it next to the `setupJest.ts` file.*

...and include this in your `package.json`:
```json
{
Expand Down

0 comments on commit 4a333af

Please sign in to comment.