You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same problem here. We're upgrading from 1 to 2 also.
Only happens for mocking paths with wildcards, like path: "/my-index*/_search"
I want to mock a path with a literal asterisk, but find-my-way is interpreting the asterisk as a wildcard.
delvedor/find-my-way#277 mentions this and suggests a workaround. I'm temporarily using a similar workaround while I work through a bunch of broken tests for various other problems. (Updating from elastic 7.x to 8.x at the same time; many of my errors have nothing to do with this mock module.)
My workaround is to get rid of the wildcard in a couple places, like the add and get methods:
I'll update this comment and/or submit a PR if I come up with anything more elegant or useful.
...
Update: I tried to create a better workaround in elasticsearch-mock, but couldn't come up with anything workable. For now I'm using override in my package.json to force elasticsearch-mock to use an older version of find-my-way:
Hi, I got a
currentNode.createStaticChild is not a function
fromfind-my-way
after upgrading to v2.0. Can check if anyone face the same issue as me?The text was updated successfully, but these errors were encountered: