From 2b64bb45fc952d02ecdd09618c817fd0d67f072e Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Sun, 30 Jun 2019 11:32:33 +0300 Subject: [PATCH] Update setup instructions for typescript files (#8624) * Update setup instructions for typescript files * Feedback --- packages/babel-jest/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-jest/README.md b/packages/babel-jest/README.md index f9003764d794..e0a6890f9411 100644 --- a/packages/babel-jest/README.md +++ b/packages/babel-jest/README.md @@ -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" }, ```