Skip to content

Add new unit tests and refactor async expectations#88

Merged
m0hanraj merged 5 commits intomainfrom
chore/add-component-tests
Mar 11, 2024
Merged

Add new unit tests and refactor async expectations#88
m0hanraj merged 5 commits intomainfrom
chore/add-component-tests

Conversation

@m0hanraj
Copy link
Collaborator

Added unit tests for Snippet, Clipboard, checkIfFlagExists function, and SdkModal components. Additionally, refactored end-to-end tests in feature-flags.spec.ts to correctly await asynchronous expectations to improve reliability and readability of tests.

mohanrajpac and others added 2 commits March 11, 2024 16:20
Added unit tests for Snippet, Clipboard, checkIfFlagExists function, and SdkModal components. Additionally, refactored end-to-end tests in feature-flags.spec.ts to correctly await asynchronous expectations to improve reliability and readability of tests.
@codecov
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.67%. Comparing base (daa8dcb) to head (0669ba6).

Additional details and impacted files
@@              Coverage Diff              @@
##               main      #88       +/-   ##
=============================================
- Coverage     96.29%   81.67%   -14.63%     
  Complexity       24       24               
=============================================
  Files             4       17       +13     
  Lines            81      191      +110     
  Branches          0        9        +9     
=============================================
+ Hits             78      156       +78     
- Misses            3       27       +24     
- Partials          0        8        +8     
Flag Coverage Δ
integrationtests 96.29% <ø> (ø)
jstests 70.90% <ø> (?)
unittests 33.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Several packages were updated in yarn.lock file, including "@ampproject/remapping" and "@babel". These updates can include bug fixes, performance improvements, and security updates provided by the package maintainers.
@m0hanraj m0hanraj merged commit af47de8 into main Mar 11, 2024
@m0hanraj m0hanraj deleted the chore/add-component-tests branch March 11, 2024 16:49
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.

2 participants