mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Update addons/storyshots/storyshots-core/src/api/index.ts
This commit is contained in:
parent
6f5833c472
commit
d48dc79e06
@ -40,7 +40,7 @@ function testStorySnapshots(options: StoryshotsOptions = {}) {
|
||||
|
||||
addons.setChannel(mockChannel());
|
||||
|
||||
// Add a mock EventSource class to be used by
|
||||
// Add a mock EventSource class as it is extended by the `StoryIndexClient` (we don't actually use that in v6 mode)
|
||||
if (!global.EventSource) global.EventSource = EventSourceStandin;
|
||||
|
||||
const { storybook, framework, renderTree, renderShallowTree } = loadFramework(options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user