Skip to content

Add tests for react component#82

Merged
m0hanraj merged 13 commits intomainfrom
chore/add-component-tests
Mar 10, 2024
Merged

Add tests for react component#82
m0hanraj merged 13 commits intomainfrom
chore/add-component-tests

Conversation

@m0hanraj
Copy link
Collaborator

@m0hanraj m0hanraj commented Mar 8, 2024

Adds components tests for missing components

A new test file, SubmitControls.test.js, has been created to perform various testing scenarios on the SubmitControls component. Tests include checking button interactions and verifying visibility conditions. Also, package.json and jest-setup.js have been updated to aid the new test configurations.
Refactored the render methods in SubmitControls.test.js to improve readability. Generated new .idea configuration files for better compatibility and working environment setup across different development machines. This mainly involves setting up configurations for PHPUnit, Prettier, VCS, and modules.
@codecov
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.29%. Comparing base (9123515) to head (87b286b).

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #82   +/-   ##
=========================================
  Coverage     96.29%   96.29%           
  Complexity       24       24           
=========================================
  Files             4        4           
  Lines            81       81           
=========================================
  Hits             78       78           
  Misses            3        3           
Flag Coverage Δ
integrationtests 96.29% <ø> (ø)
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.

@m0hanraj m0hanraj marked this pull request as ready for review March 10, 2024 13:47
@m0hanraj m0hanraj merged commit 66c70e2 into main Mar 10, 2024
@m0hanraj m0hanraj deleted the chore/add-component-tests branch March 10, 2024 13:48
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