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
ZoneJS works by patching browser APIs but does not automatically have patches for every new browser API. Some APIs simply cannot be patched effectively, such as async/await, and have to be downleveled to work with ZoneJS.
At this moment, you can only use
mount
in the play function if you transpile your stories to ES2017 or newer:https://storybook.js.org/docs/writing-tests/component-testing#run-code-before-the-component-gets-rendered
Angular can not use ES2017 (specifically: async/await) natively if zone.js is used
https://angular.dev/guide/experimental/zoneless#why-use-zoneless
Vitest has a similar issue with fixtures:
vitest-dev/vitest#6531
We copied the regex from vitest to detect function arguments on runtime. When this issue is fixed, we should align our regex again :)
The text was updated successfully, but these errors were encountered: