From d21ae7f1f84d0dd6ab912c6be27bad2ac3c027b8 Mon Sep 17 00:00:00 2001 From: Edmund Hiew <4344320+newmanicspree@users.noreply.github.com> Date: Wed, 30 Oct 2019 13:14:26 +1100 Subject: [PATCH] Update jest.md Included `testMatch` and edited `transform` entries to meet [#6442](https://github.com/facebook/jest/pull/6442) from the Jest community. --- docs/testing/jest.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/testing/jest.md b/docs/testing/jest.md index 0a910bdd6..3c94ba498 100644 --- a/docs/testing/jest.md +++ b/docs/testing/jest.md @@ -30,8 +30,12 @@ module.exports = { "roots": [ "/src" ], + testMatch: [ + "**/__tests__/**/*.+(ts|tsx|js)", + "**/?(*.)+(spec|test).+(ts|tsx|js)" + ], "transform": { - "^.+\\.tsx?$": "ts-jest" + "^.+\\.(ts|tsx)?$": "ts-jest" }, } ```