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

tests(react): add proper unit tests #466

Merged
merged 3 commits into from
Feb 18, 2022
Merged

tests(react): add proper unit tests #466

merged 3 commits into from
Feb 18, 2022

Conversation

straker
Copy link
Contributor

@straker straker commented Feb 16, 2022

Add proper unit testing to @axe-core/react. This allows us to better maintain the repo and see changes that would break us before they happen. For example, here is react@17 with the recent fix commented out.

3 test failures on the tests that test component update changes

And here's react@16

all tests passing

Also removed Cypress tests as they were no longer needed and covered by the unit tests.

NOTE: I was unable to figure out how to get jest/enzyme to work with typescript and load the index.ts file directly, so just loaded the file from dist.

Closes issue: #449

@straker straker changed the title tests: add proper unit tests tests(react): add proper unit tests Feb 17, 2022
Copy link
Contributor

@Zidious Zidious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@straker straker merged commit 121158d into develop Feb 18, 2022
@straker straker deleted the unit-tests branch February 18, 2022 15:22
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.

None yet

2 participants