You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a unit test suite to validate the input unique ID regex defined in the utils.ts file of the portal-frontend-registration repository. The tests should be integrated into the PR workflow to ensure the regex validation is working as expected.
Tasks
Write Unit Tests: Create a new test file (e.g., utils.test.ts) that will contain the tests for the unique ID regex validation.
Write test cases to cover various scenarios, including:
Valid unique IDs that should pass the regex validation
Invalid unique IDs that should fail the regex validation
Ensure the test cases cover edge cases and a wide range of possible input values.
Align the test data with the PO by providing the suggested test data for approval
Verify Test Coverage: Ensure the unit tests provide comprehensive coverage for the unique ID regex validation logic.
Document the Tests: Update the project's documentation to include information about the newly added unit tests, their purpose, and how to run them locally.
Acceptance Criteria
Unit tests for the unique ID regex validation are created and integrated into the PR workflow.
The tests cover a wide range of valid and invalid input scenarios.
The CI/CD pipeline is configured to run the tests for every pull request. //should be existing but please re-verify
The project's documentation is updated to include information about the new unit tests.
The text was updated successfully, but these errors were encountered:
Description
Create a unit test suite to validate the input unique ID regex defined in the
utils.ts
file of theportal-frontend-registration
repository. The tests should be integrated into the PR workflow to ensure the regex validation is working as expected.Tasks
utils.test.ts
) that will contain the tests for the unique ID regex validation.Acceptance Criteria
The text was updated successfully, but these errors were encountered: