Skip to content

Commit 42f0107

Browse files
committed
Cast mock channel to proper Channel
1 parent a28200d commit 42f0107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/core/src/manager/index.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { Channel } from 'storybook/internal/channels';
12
import { CHANNEL_CREATED, CHANNEL_WS_DISCONNECT } from 'storybook/internal/core-events';
23
import { MemoryRouter } from 'storybook/internal/router';
34
import type { Addon_Config, Addon_Types } from 'storybook/internal/types';
@@ -12,13 +13,12 @@ import { screen, within } from 'storybook/test';
1213
import { color } from 'storybook/theming';
1314

1415
import preview from '../../../.storybook/preview';
15-
import type Channel from '../channels';
1616
import { Main } from './index';
1717
import Provider from './provider';
1818

1919
const WS_DISCONNECTED_NOTIFICATION_ID = 'CORE/WS_DISCONNECTED';
2020

21-
const channel = mockChannel();
21+
const channel = mockChannel() as unknown as Channel;
2222

2323
const originalGetItem = Storage.prototype.getItem;
2424
const originalSetItem = Storage.prototype.setItem;

0 commit comments

Comments
 (0)