Skip to content
Discussion options

You must be logged in to vote

I think your approach is the right way to go: Add an EditForm around. Of course, you are free to wrap your component in whatever you want inside your test. You can create separate test components that create an EditContext and have your InputEmail as child component.

You can, alternatively, also add a EditContext as part of the RenderTree: https://bunit.dev/docs/providing-input/root-render-tree.html

Replies: 1 comment 4 replies

Comment options

linkdotnet
Sep 29, 2025
Maintainer Sponsor

You must be logged in to vote
4 replies
@Julien-Marpault
Comment options

@linkdotnet
Comment options

linkdotnet Oct 3, 2025
Maintainer Sponsor

Answer selected by Julien-Marpault
@Julien-Marpault
Comment options

@Julien-Marpault
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants