Skip to content

test: migrate publish button tests to RTL#1618

Merged
ckerr merged 3 commits into
mainfrom
test/rtl-commands-publish-button
Jul 30, 2024
Merged

test: migrate publish button tests to RTL#1618
ckerr merged 3 commits into
mainfrom
test/rtl-commands-publish-button

Conversation

@erikian

@erikian erikian commented Jul 29, 2024

Copy link
Copy Markdown
Member

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 a team and codebytere as code owners July 29, 2024 12:10
@coveralls

Copy link
Copy Markdown

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
Copy Markdown
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
@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