We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ab5f6b + c2a9df2 commit 6859f4cCopy full SHA for 6859f4c
.changeset/young-beans-grab.md
@@ -0,0 +1,5 @@
1
+---
2
+"@web/mocks": patch
3
4
+
5
+fix: flatten mocks correctly
packages/mocks/storybook/decorator.js
@@ -56,7 +56,7 @@ export const withMocks = makeDecorator({
56
});
57
58
if (finalizedMocks) {
59
- addons.getChannel().emit('mocks:loaded', finalizedMocks);
+ addons.getChannel().emit('mocks:loaded', finalizedMocks.flat(Infinity));
60
registerMockRoutes(finalizedMocks);
61
}
62
0 commit comments