chore(jest-types): correct type testRegex for ProjectConfig#9780
Merged
SimenB merged 1 commit intojestjs:masterfrom Apr 8, 2020
ahnpnl:fix-test-regex-type
Merged
chore(jest-types): correct type testRegex for ProjectConfig#9780SimenB merged 1 commit intojestjs:masterfrom ahnpnl:fix-test-regex-type
SimenB merged 1 commit intojestjs:masterfrom
ahnpnl:fix-test-regex-type
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9780 +/- ##
=========================================
Coverage ? 64.91%
=========================================
Files ? 288
Lines ? 12203
Branches ? 3026
=========================================
Hits ? 7922
Misses ? 3641
Partials ? 640
Continue to review full report at Codecov.
|
SimenB
reviewed
Apr 8, 2020
SimenB
reviewed
Apr 8, 2020
SimenB
reviewed
Apr 8, 2020
Contributor
Author
|
FYI, using tuple type |
jeysal
added a commit
to mmkal/jest
that referenced
this pull request
Apr 10, 2020
…pshots * upstream/master: (225 commits) docs: add CLA link to contributing docs (jestjs#9789) chore: roll new version of docs v25.3.0 chore: update changelog for release chore(jest-types): correct type testRegex for ProjectConfig (jestjs#9780) feat(circus): enable writing async test event handlers (jestjs#9397) feat: enable all babel syntax plugins (jestjs#9774) chore: add helper for getting Jest's config in e2e tests (jestjs#9770) feat: pass ESM options to transformers (jestjs#9597) chore: replace `any`s with `unknown`s (jestjs#9626) feat: pass ESM options to Babel (jestjs#9766) chore(website): add copy button the code blocks (jestjs#9750) chore: bump istanbul-reports for new uncovered lines design (jestjs#9758) chore: correct CHANGELOG.md (jestjs#9763) chore(jest-types): expose type `CacheKeyOptions` for `getCacheK… (jestjs#9762) docs: Fix simple typo, seperated -> separated (jestjs#9760) v25.2.7 chore: update changelog for release fix: drop getters and setters when diffing objects for error (jestjs#9757) chore(jest-types): correct return type of shouldRunTestSuite fo… (jestjs#9753) ...
This was referenced May 1, 2020
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of
testRegexinProjectConfigdoesn't match with documentation and also not match with real capable value. It should bestring | string[] | RegExp[]. This PR does 2 things:Array<RegExp>to the existing type oftestRegexinProjectConfig.Array<RegExp>fortestRegexin Configuration page.I'm not entirely sure if
testRegexinProjectConfigcan be string or not, but the documentation says it can be string as well. For now I just updated the type to addArray<RegExp>to the existing type. I observed that addingstringwill change quite something in internal codes so I won't touch.Test plan
Green CI probably ?