Closed zadigus closed 4 years ago
I apologize for that stupid question. The mistake is easy to find:
addDecorator(
apolloStorybookDecorator({
typeDefs,
multipleShopsMock,
Vue
})
)
needs to be
addDecorator(
apolloStorybookDecorator({
typeDefs,
mocks: multipleShopsMock,
Vue
})
)
I have tried to use the decorator for my vue app in two ways. The first way works, where I use the following
.storybook/config.js
:The second way did not work, where I got rid of everything related to
apollo-storybook-vue
from theconfig.js
and put it in the story instead, like this:The mock file exists, the storybook loads nicely, with my map, but without data, i.e. as if the apolloProvider was there (otherwise I would get an error that my data are not defined) but my data are just not taken into account somehow. I am using the very same mock file in both cases.
What am I missing here?