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.
1 parent 6664e5b commit a2b2a94Copy full SHA for a2b2a94
packages/mocks/storybook/decorator.js
@@ -45,7 +45,12 @@ export const withMocks = makeDecorator({
45
? {
46
...editedMock,
47
handler: () =>
48
- new Response(JSON.stringify(editedMock.data), { status: editedMock.status }),
+ new Response(JSON.stringify(editedMock.data), {
49
+ headers: {
50
+ 'Content-Type': 'application/json',
51
+ },
52
+ status: editedMock.status,
53
+ }),
54
}
55
: mock;
56
});
0 commit comments