Skip to content

Commit

Permalink
Update setup instructions for typescript files (#8624)
Browse files Browse the repository at this point in the history
* Update setup instructions for typescript files

* Feedback
  • Loading branch information
joeldenning authored and SimenB committed Jun 30, 2019
1 parent f7f787d commit 2b64bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-jest/README.md
Expand Up @@ -16,10 +16,10 @@ If you would like to write your own preprocessor, uninstall and delete babel-jes

_Note: this step is only required if you are using `babel-jest` with additional code preprocessors._

To explicitly define `babel-jest` as a transformer for your JavaScript code, map _.js_ files to the `babel-jest` module.
To explicitly define `babel-jest` as a transformer for your JavaScript code, map _.js_ files to the `babel-jest` module. Typescript files are also supported.

```json
"transform": {
"^.+\\.jsx?$": "babel-jest"
"^.+\\.[t|j]sx?$": "babel-jest"
},
```

0 comments on commit 2b64bb4

Please sign in to comment.