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
Any args that are marked as an action (typically via argTypes or argTypesRegex) will be automatically wrapped in a Jest mock function so you can assert invocations. See addon-actions for how to setup actions.
However in chromatic, mock don't work and test fails. Error as shown in the following.
Error: expect(received).toBeCalledTimes(expected)
Matcher error: received value must be a mock or spy function
Received has type: function
Received has value: [Function n]
The text was updated successfully, but these errors were encountered:
As mentioned in the following link, In local storybook
action
mock works.https://github.com/storybookjs/storybook/tree/v6.5.9/addons/interactions#usage
However in chromatic, mock don't work and test fails. Error as shown in the following.
The text was updated successfully, but these errors were encountered: