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
I'm sorry, but I don't have the time capacity to fix this since it would require a lot of changes since the Promise interface has changed a lot in the newer versions of Typescript.
If you can create a pull request with the minimal needed changes and tests that pass I would review it and merge it.
Hello @slavik57 and anyone who ends here in the future. I tried making a PR for your repository but I just could not make it work. So, I ended up making my own repository and library for a promise mock which implements the full Typescript Promise<T> interface. I linked back to your original implementation.
Hello,
PromiseMock
is not assignable to a variable or a parameter that expects the typePromise
. The error returned by Typescript is this:Property '[Symbol.toStringTag]' is missing in type 'PromiseMock<T>' but required in 'Promise<T>'
This makes it hard to use the promise mock in places where a real promise is expected, resulting in us having to cast the value to
any
. 😞Versions
promise-sync@1.1.7
typescript@3.6.4
The text was updated successfully, but these errors were encountered: