We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected] for the project I'm working on.
[email protected]
Here is the diff that solved my problem:
diff --git a/node_modules/wait-for-expect/lib/helpers.js b/node_modules/wait-for-expect/lib/helpers.js index 27d63b7..aee6aa4 100644 --- a/node_modules/wait-for-expect/lib/helpers.js +++ b/node_modules/wait-for-expect/lib/helpers.js @@ -15,7 +15,9 @@ var globalObj = typeof window === "undefined" ? global : window; // Currently th function runWithRealTimers(callback) { var usingJestFakeTimers = // eslint-disable-next-line no-underscore-dangle - globalObj.setTimeout._isMockFunction && typeof jest !== "undefined"; + typeof jest !== 'undefined' && + setTimeout.clock != null && + typeof setTimeout.clock.Date === 'function'; if (usingJestFakeTimers) { jest.useRealTimers();
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered:
+1 I am also having this issue
Sorry, something went wrong.
Any updates on this item? It's been over a year :(
Successfully merging a pull request may close this issue.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: