Open redshoga opened 3 years ago
@redshoga Thanks for your feedback!
I haven't tried it, but it looks like fireEvent.change
doesn't fire an onChange event and an onChange
callback passed by TypedController is not being executed. Can you verify this? 🙏
You may also be able to resolve using userEvent.type
instead of fireEvent.change
.
Unable to get input value of wrapped component in
<TypedController />
on Jest.Both codes work correctly in the browser. (Chrome 85.0.4183.102)
use
<TypedController />
sample test codeOnly the last test will not pass.
Error log
without
<TypedController />
sample test codeAll tests pass.
dependencies (package.json)