-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: #12672
Comments
This is due to https://github.com/SeleniumHQ/selenium/blob/8b53734fd2bc97f7d084dc8326bf4b6c47b7052e/javascript/node/selenium-webdriver/lib/by.js#L205-L207 messing with our logic for gettting the name of a function here: https://github.com/facebook/jest/blob/1cce9a7dc194103576fad6c2086052efbea5ae77/packages/jest-mock/src/index.ts#L974-L975. It looks weird in Node's REPL as well. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
27.5.1
Steps to reproduce
yarn install
yarn test
Expected behavior
I expect the test to complete successfully.
Actual behavior
Additional context
I did a bit of debugging on my own, and I think this is happening in _createMockFunction:
Something in
selenium-webdriver
has aname
property that's a function, rather than a string, which is causing that error. I wasn't able to figure out which class inselenium-webdriver
was the culprit, however.Environment
The text was updated successfully, but these errors were encountered: