mobx-react-form-demo icon indicating copy to clipboard operation
mobx-react-form-demo copied to clipboard

Add example test

Open xijo opened this issue 8 years ago • 4 comments

Hello,

It'd be great to see how to integrate mobx-react-form properly into unit tests like jest. Of course it doesn't need to be exhaustive, but offer a solid example to take it from there.

Thanks for your work, Jo

xijo avatar Apr 25 '17 08:04 xijo

Hi @xijo

I will look into that,

Thank You

foxhound87 avatar Apr 25 '17 08:04 foxhound87

Hi @foxhound87, I am having troubles trying to write a unit test for an event handler of a field and more specifically trying to reach the field value which is set by the field setter. I can only test that the handler is called so far. A test demo will be handy I believe. Thanks in advance.

neveenatik avatar Jul 10 '19 16:07 neveenatik

Which kind of test system are you trying to implement?

foxhound87 avatar Jul 10 '19 20:07 foxhound87

Jest and Enzyme. I want to be able to simulate an event and test input field value. Thanks again :)

neveenatik avatar Jul 11 '19 14:07 neveenatik