Skip to content

Commit

Permalink
Provide regex visualization for testRegex (jestjs#3758)
Browse files Browse the repository at this point in the history
* Provide regex visualization for testRegex

* Update Configuration.md
  • Loading branch information
mcampagonzalez authored and cpojer committed Jun 8, 2017
1 parent 4f84380 commit ca1250c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/en/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>]](#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`

Expand Down

0 comments on commit ca1250c

Please sign in to comment.