diff --git a/README.md b/README.md index c69db4141edd..dbe428ccd67a 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ then modify your `package.json` so the `jest` section looks something like: { "jest": { "transform": { - ".(ts|tsx)": "/node_modules/ts-jest/preprocessor.js" + "^.+\\.tsx?$": "/node_modules/ts-jest/preprocessor.js" }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [ diff --git a/docs/en/GettingStarted.md b/docs/en/GettingStarted.md index 5c17474e764e..b2dbea7fd0df 100644 --- a/docs/en/GettingStarted.md +++ b/docs/en/GettingStarted.md @@ -120,7 +120,7 @@ then modify your `package.json` so the `jest` section looks something like: { "jest": { "transform": { - ".(ts|tsx)": "/node_modules/ts-jest/preprocessor.js" + "^.+\\.tsx?$": "/node_modules/ts-jest/preprocessor.js" }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [