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
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:
const injector = args.getInjector();
const service = injector.get(MyService);
const spy = spyOn(service, 'test');
// ... some UI actions which should call that service's method
expect(spy).toHaveBeenCalled();
What's wrong, service's method losts his scope to null, so any this usage will cause errors inside that method
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: