0

I am trying to test a react page. Using .trigger("input", {which: 65}) doesn't seem to invoke the SyntheticEvent. So I was wondering if was possible to combine jQuery and .simulate of the testUtils somehow?

Basically, i am trying to do something like

$('selector').simulate('input', ...)

1 Answer 1

0

I am afraid you cannot. Using TestUtils you operate with virtual dom - therefore you cannot use jquery.

You can check this tutorial for more info on the options you have for testing react apps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.