Skip to content
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

test(InterstitialScreen): increase code coverage #6316

Merged

Conversation

anamikaanu96
Copy link
Contributor

Closes #6264

Increased code coverage

What did you change?

packages/ibm-products/src/components/InterstitialScreen/InterstitialScreen.test.js
packages/ibm-products/src/components/InterstitialScreen/InterstitialScreen.tsx

How did you test and verify your work? yarn test coverage:report

@anamikaanu96 anamikaanu96 requested a review from a team as a code owner October 30, 2024 11:37
@anamikaanu96 anamikaanu96 requested review from matthewgallo and devadula-nandan and removed request for a team October 30, 2024 11:37
Copy link

netlify bot commented Oct 30, 2024

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit 146cf51
🔍 Latest deploy log https://app.netlify.com/sites/ibm-products-web-components/deploys/67221a7731d81e000863261d
😎 Deploy Preview https://deploy-preview-6316--ibm-products-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 30, 2024

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit 146cf51
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/67221a770d0c840008855647
😎 Deploy Preview https://deploy-preview-6316--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@anamikaanu96 anamikaanu96 changed the title Interstitial screen coverage test(InterstitialScreen): increase code coverage Oct 30, 2024
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.06%. Comparing base (eafbba3) to head (146cf51).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6316      +/-   ##
==========================================
+ Coverage   78.68%   79.06%   +0.38%     
==========================================
  Files         395      395              
  Lines       12880    12880              
  Branches     4256     4256              
==========================================
+ Hits        10134    10183      +49     
+ Misses       2746     2697      -49     
Components Coverage Δ
ibm-products ∅ <ø> (∅)
ibm-products-web-components ∅ <ø> (∅)

});
const closeBtn = screen.getByLabelText('Close');
await act(() => userEvent.click(closeBtn));
expect(onClose).toBeCalled();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note, you could use .toHaveBeenCalledTimes(1) here to make sure it's called the number of times expected.

@anamikaanu96 anamikaanu96 added this pull request to the merge queue Oct 30, 2024
Merged via the queue into carbon-design-system:main with commit bc3fa66 Oct 30, 2024
32 of 33 checks passed
@anamikaanu96 anamikaanu96 deleted the InterstitialScreenCoverage branch October 30, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase InterstitialScreen code coverage
3 participants