How to mock handlers for elastic search client v8.11.0

Hi, guys, I have updated my Elasticsearch client from V7 to V8, and it seems that the setHandler is removed. I have no idea how to set it in version 8.

No worries, I've found the solution from here!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.