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

[Unit Test] Write Component Unit Tests #1110

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tanner-ricks
Copy link
Contributor

@tanner-ricks tanner-ricks commented Jan 14, 2025

Components needed unit tests so some unit tests have been written.

Changes

  • Updated vite config to facilitate in IDE running of tests
  • Wrote tests for the following component files
    • ScreenReaderOnly
    • ScrollToTop
    • SectionIntro.tsx
    • TextInput.tsx
    • WarningErrorIcon.tsx

How to test this PR

  1. Pull the branch for this PR
  2. Navigate to the sbl-frontend directory
  3. run yarn run vitest
  4. Verify that the coverage is 100% across the board for the above files mentioned

@tanner-ricks tanner-ricks linked an issue Jan 14, 2025 that may be closed by this pull request
@tanner-ricks tanner-ricks changed the title DRAFT: [Unit Test] Write Component Unit Tests [Unit Test] Write Component Unit Tests Jan 15, 2025
@tanner-ricks tanner-ricks marked this pull request as ready for review January 15, 2025 19:40
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.

[Unit Test] Write Component Unit Tests
1 participant