-
Notifications
You must be signed in to change notification settings - Fork 13
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
TypeError: Cannot read property 'ids' of undefined, help needed #13
Comments
Hi, I'm sorry you are finding more issues. That ids error indicates that something got wrong when generating generics. I'll keep you updated :) |
No worries. It's the only way I can contribute ;) |
Hi again, I had a quick look. Something is wrong with defaults generics. I've tried to default the generic doing this but there is another issue related to that generic. createMock<Request<{ [key: string]: string; }>>(); You may have to wait few more days to use that interface |
@barthpl morning and happy new year :) A new version has been released. 1.0.10 :) I've tested it with the entire express module. It should work, let me know if you have any issue. You may have to install the latest of ts-auto-mock if you've installed separately. |
@uittorio happy new year to you too. Fix works perfect. Thank you. |
While I'm trying to mock
Request
formexpress
I have following error message:Test which results in this error is below
I'm using
"express": "^4.17.1",
,"jest-ts-auto-mock": "^1.0.8",
and"ts-auto-mock": "^1.4.3",
. Any idea how to resolve it?The text was updated successfully, but these errors were encountered: