Confusion around slice mock files + mock regeneration

Hi Vitor,

Welcome to the community!

So this has been discussed before:

But to summarise there's no good way to use custom mocks or disable the automatic mock changes at the moment.

The team is aware of this feature request and I'm adding another mark here with your request.

If/when this behaviour ever changes, we will update you here.

The files you have above server these functions:
.slicemachine/mock-config.json - Settings to tell Slice Machine how to create the mock. These settings are changed in the Slice Machine UI.
.slicemachine/assets/slices/[MySlice]/mocks.json - The actual mock data.
The story file. - Settings to connect this data to Storybook.

Thanks.

1 Like