From ca1250c411061a77b5c1b1e823d8586e51fd528c Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 8 Jun 2017 11:27:44 +0100 Subject: [PATCH] Provide regex visualization for testRegex (#3758) * Provide regex visualization for testRegex * Update Configuration.md --- docs/en/Configuration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/en/Configuration.md b/docs/en/Configuration.md index 762044c6073d..005ff476a9f7 100644 --- a/docs/en/Configuration.md +++ b/docs/en/Configuration.md @@ -518,6 +518,18 @@ inside of `__tests__` folders, as well as any files with a suffix of `.test` or or `spec.js`. See also [`testMatch` [array]](#testmatch-array-string), but note that you cannot specify both options. +The following is a visualization of the default regex: + +``` +├── __tests__ +│ └── component.spec.js # test +│ └── anything # test +├── package.json # not test +├── foo.test.js # test +├── bar.spec.jsx # test +└── component.js # not test +``` + ### `testResultsProcessor` [string] Default: `undefined`