-
Notifications
You must be signed in to change notification settings - Fork 0
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
Vitest mock issue when running tests #44
Comments
Okay, so i found out, this happens, when test uses class which uses any kind of
which works in the app, but in the test its problematic, but i dont know why. Trying string instead of token works for me:
|
Thanks for reporting this issue. Let's see if we can reproduce it. Can you clone this StackBlitz and try to reproduce it in there? Alternatively, you can share me a reproduction in a Github repository. |
Sorry, i was little bit busy, i will try to do some more debugging later :). |
Let me know, I am motivated to help you out here. ;) |
Hello there,
i migrated the project from tsyringe, and it works perfectly fine.
When running vitest following occurs when i try to mock a dependency, which is normally injected in the constructor:
Mentioned part of the code in test:
Can this be due to some invalid or missing setting, like
target
ofES2022
or something like that?The text was updated successfully, but these errors were encountered: