-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
TS error on a specific class mock #282
Comments
|
Hi, good news. I've found the source of the bug.
We don`t currently support extending function constructor. I've found a fix, just need to add more tests to make sure we are covering all the scenarios. |
I've created a branch. Once it's reviewed and merge, a new version will be published :). #296 |
This is fixed in 1.6.0 :) I'll close for now. Feel free to reopen it if it's still bugged. |
@uittorio I refactored all the Discord classes with |
Cool! bear in mind that some types are not working in discord.. it will convert to null :) hopefully it will not impact your code |
Subject of the issue
When using
createMock
on a specific complex class, an error occurred breaking all the tests.Your environment
Steps to reproduce
You can also checkout the online version of the problem but note that the tests are not working with the dependencies so this is only to have a look of the dependencies and the test not working.
StackTrace
Expected behavior
No error and a mock produced.
Actual behavior
Error and no mock produced.
Additional information
Could be related to the #201 issue.
The text was updated successfully, but these errors were encountered: