Skip to content

Commit

Permalink
docs(typescript): add triple slash directive (jest-community#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynevanson authored Oct 11, 2021
1 parent a40d1ea commit ff02ff1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ Since the [breaking changes]() in `25.5.0` you may also need to update your `tsc

Also note that when adding this for the first time this affects which files are compiled by the TypeScript compiler and you might need to add the `include` property as well. See the [TypeScript docs](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) for more details.

If the above import syntax does not work, replace it with the following:

```ts
/// <reference types="jest-extended" />
```
## Asymmetric matchers

All matchers described in the API are also asymmetrical since [jest version 23](https://jestjs.io/blog/2018/05/29/jest-23-blazing-fast-delightful-testing#custom-asymmetric-matchers):
Expand Down

0 comments on commit ff02ff1

Please sign in to comment.