Closed timdeschryver closed 2 years ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 714007e954cff8c801d9165108ed61d91f12b543:
Sandbox | Source |
---|---|
react-testing-library-examples | Configuration |
react-testing-library demo | Issue #1115 |
Merging #1116 (714007e) into main (90fba31) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## main #1116 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 25
Lines 955 961 +6
Branches 311 312 +1
=========================================
+ Hits 955 961 +6
Flag | Coverage Δ | |
---|---|---|
node-12 | ? |
|
node-14 | ? |
|
node-16 | 100.00% <100.00%> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
src/matches.ts | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 90fba31...714007e. Read the comment docs.
@timdeschryver I think you need to push an empty commit or rebase and drop the merge commit. Codecov may not like merge commits which is a result of updating the branch from the GitHub UI.
@eps1lon Done. No problem, it was a team effort so we have me to blame aswell This change had a bit more catches than forseen 😅
:tada: This PR is included in version 8.11.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What: Resolves #1115
Why:
The instance of a regex that's using the global flag hold a
lastIndex
state. This might give false positive results.For example:
How:
Added a reproduction test case. Recreate a new regex instance from the original regex.
An alternative would be to reset the
lastIndex
to0
after the check.Checklist: