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

new option on for render and rerender #465

Merged

Conversation

mumenthalers
Copy link
Contributor

@mumenthalers mumenthalers commented Jul 12, 2024

closes #462

I had to move the renderFixture function up the order, as it's necessary to keep track of the subscribedOutputs in order to not unnecessarily unsubscribe+resubscribe unchanged listeners when rerendering.

Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

Great work @mumenthalers !
I left some thoughts, I'm looking forward for your feedback.

cc @lacolaco

projects/testing-library/tests/render.spec.ts Show resolved Hide resolved
projects/testing-library/tests/render.spec.ts Show resolved Hide resolved
projects/testing-library/src/lib/models.ts Outdated Show resolved Hide resolved
@mumenthalers mumenthalers changed the title new option subscribeToOutputs for render and rerender new option on for render and rerender Jul 17, 2024
Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this @mumenthalers !

@timdeschryver timdeschryver merged commit caad0c2 into testing-library:main Jul 20, 2024
4 checks passed
@timdeschryver
Copy link
Member

@all-contributors please add @mumenthalers for code, tests

Copy link
Contributor

@timdeschryver

I've put up a pull request to add @mumenthalers! 🎉

This was referenced Jul 20, 2024
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.

Proposal: new way to spy output without any assertion
2 participants