department-of-veterans-affairs / va-mobile-library

https://department-of-veterans-affairs.github.io/va-mobile-library/
ISC License
0 stars 0 forks source link

[Feature] Alert unit tests #301

Closed narin closed 1 month ago

narin commented 1 month ago

Description of Change

Adds the following unit tests for Alert:

This PR also renames the testId prop in Alert to testID to be consistent the other components and fixes one of the Button tests to use queryByText instead of the async findByText.

Note: Moved accessibility tests to #279 since we'll want to configure jest matchers

Testing Packages

N/A

Screenshots/Video

image

Testing

N/A, they're unit tests

PR Checklist

Code reviewer validation:

Publish

If changes warrant a new version per the versioning guidelines and the PR is approved and ready to merge:

narin commented 1 month ago

Moved accessibility tests to be a part of #279. Ready for another round of review.