Skip to content

test: Fix missing coverage for else-if #1013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2021
Merged

test: Fix missing coverage for else-if #1013

merged 1 commit into from
Aug 25, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Aug 25, 2021

What:

Fix CI on main (e.g. https://github.com/testing-library/dom-testing-library/runs/3419566094)

Why:

No longer able to ignore the condition with Istanbul.
This was always an issue (gotwarlost/istanbul#781) but it seems like some updated dependency broke the previous workaround. Since we don't use lockfiles, we can't investigate when and why.

How:

Use "lonely-if" instead of else-if

Checklist:

  • [ ] Documentation added to the
    docs site
  • Tests
  • [ ] TypeScript definitions updated
  • Ready to be merged

@codesandbox-ci
Copy link

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 5aac2b9:

Sandbox Source
react-testing-library-examples Configuration

@codecov
Copy link

codecov bot commented Aug 25, 2021

Codecov Report

Merging #1013 (5aac2b9) into main (84bf52f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main     #1013   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        25           
  Lines          914       916    +2     
  Branches       283       285    +2     
=========================================
+ Hits           914       916    +2     
Flag Coverage Δ
node-12 100.00% <100.00%> (ø)
node-14 100.00% <100.00%> (ø)
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/events.js 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 84bf52f...5aac2b9. Read the comment docs.

@eps1lon eps1lon marked this pull request as ready for review August 25, 2021 08:25
@eps1lon eps1lon merged commit 91b9dc3 into main Aug 25, 2021
@eps1lon eps1lon deleted the test/ignore-coverage branch August 25, 2021 08:26
@github-actions
Copy link

🎉 This PR is included in version 8.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant