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

test: migrate publish button tests to RTL #1618

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Conversation

erikian
Copy link
Member

@erikian erikian commented Jul 29, 2024

Ref: #1408.

I'm also adding a helper function that allows us to access class components' instances, since RTL doesn't expose them and a bunch of our tests are messing with component internals directly; that's probably something we should move away from at some point, but for now that helper should make it a bit easier to migrate away from Enzyme.

@erikian erikian requested review from codebytere and a team as code owners July 29, 2024 12:10
@coveralls
Copy link

Coverage Status

coverage: 87.514% (+0.02%) from 87.495%
when pulling e7f4ac0 on test/rtl-commands-publish-button
into d208fb6 on main.

@dsanders11
Copy link
Member

that's probably something we should move away from at some point, but for now that helper should make it a bit easier to migrate away from Enzyme.

I think this is reasonable. Migrating off of Enzyme will unblock us on other stuff and long-term we can further improve our testing methodology.

@ckerr ckerr merged commit 5c198ad into main Jul 30, 2024
9 checks passed
@ckerr ckerr deleted the test/rtl-commands-publish-button branch July 30, 2024 19:44
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.

5 participants