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

Company Registration Data Unit Tests #191

Open
jjeroch opened this issue Jun 16, 2024 · 0 comments
Open

Company Registration Data Unit Tests #191

jjeroch opened this issue Jun 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jjeroch
Copy link
Contributor

jjeroch commented Jun 16, 2024

Description

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

  1. 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
  2. Verify Test Coverage: Ensure the unit tests provide comprehensive coverage for the unique ID regex validation logic.
  3. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: IN PROGRESS
Development

No branches or pull requests

2 participants