-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: spyOn on Angular's services methods stopped working after upgrade to Stroybook 8 #28419
Comments
Can it be related to this line in spy.ts?
|
yeah, it's either that line in storybook/code/lib/test/src/spy.ts Line 49 in 29b9db7
We've been suffering from the latter (found through debugging/looking at the stack trace), which was introduced here: 6ea5bd8#diff-7e286e50b9508a96cb4512909ee1c653b07ebd3dc930d381b7b06115975d4effR44 (same commit you linked, just a few lines lower) I believe @kasperpeulen confirmed this appears to be a bug, and it ought to be binding an appropriate |
Describe the bug
Currently I'm trying to upgrade to Storybook 8 my Angular's app storybook with interaction tests. In some cases I have in play function the following - getting injector, finding needed service and spying on some methods:
What's wrong, service's method losts his scope to
null
, so anythis
usage will cause errors inside that methodIn Storybook 7 it was working correctly
Reproduction link
https://stackblitz.com/edit/github-ex87bm
Reproduction steps
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: