ReactLibraries / storybook-addon-module-mock

Provides module mocking functionality like jest.mock on Storybook.
MIT License
42 stars 5 forks source link

Can this be used to mock a single function? #3

Closed jelling closed 1 year ago

jelling commented 1 year ago

Hey, thanks for making this. But is it possible to use this to mock a single function?

This is what I'm trying to do: https://github.com/storybookjs/storybook/discussions/21848

SoraKumo001 commented 1 year ago

Only mocked objects that have been createMocked will be mocked.

jelling commented 1 year ago

Sorry, but could you elaborate?

SoraKumo001 commented 1 year ago

I am not sure what you want me to elaborate on, or what the intent of your question is. Please do not throw your questions to others until you ask them.