Enzyme testing select problems with antd

Hello, bosses. I encountered a problem when I was doing the jest test select

the drop-down content of antd"s select is displayed in dom and requires a mouse click. I used enzyme"s mount method, and then simulated clicks through simulate ("change"). However, the node of the drop-down content is not generated into the simulation node of the mount. If simulate ("click"), it will report an error, saying that a key? is needed Have you guys ever had a similar experience?

Jul.13,2021

have you solved it? I have the same problem now

.
Menu