multiple pages: normalize regular expression instead of regex, regexp or pattern (#5830)

This commit is contained in:
marchersimon
2021-05-10 11:03:12 +02:00
committed by GitHub
parent fd7936c944
commit 10728f1ab4
37 changed files with 74 additions and 66 deletions

View File

@@ -7,13 +7,17 @@
`jest`
- Run the test suites from files whose paths match the given regex patterns:
- Run the test suites from the given files:
`jest {{test_file1}} {{path/to/test_file2.js}}`
`jest {{path/to/file1}} {{path/to/file2}}`
- Run the tests whose names match the given regex pattern:
- Run the test suites from files within the current and subdirectories, whose paths match the given regular expression:
`jest --testNamePattern {{spec_name}}`
`jest {{regular_expression1}} {{regular_expression2}}`
- Run the tests whose names match the given regular expression:
`jest --testNamePattern {{regular_expression}}`
- Run test suites related to a given source file: