B
B
bpGusar2018-10-15 19:10:15
JavaScript
bpGusar, 2018-10-15 19:10:15

How to work with ref in jest+enzyme?

There is a function that uses ref, how to test it?
If you just start testing the function, it gives an error that ref such and such is undefined

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evangelist, 2018-10-25
@Evangelist

Too bad you can't see the code.
Alternatively, look here:
https://reactjs.org/blog/2018/03/29/react-v-16-3.h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question