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', ...)
aakashgupta.0205
  • 647
  • 1
  • 8
  • 23

1 Answers1

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.

Amid
  • 21,508
  • 5
  • 57
  • 54