Skip to content

Commit

Permalink
Fix jest issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Sep 2, 2022
1 parent 40036eb commit f84161b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/lib/preview-web/src/PreviewWeb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { addons, mockChannel as createMockChannel } from '@storybook/addons';
import type { AnyFramework } from '@storybook/csf';
import type { ModuleImportFn, WebProjectAnnotations } from '@storybook/store';
import { mocked } from 'ts-jest/utils';
import jestMock from 'jest-mock';

import { PreviewWeb } from './PreviewWeb';
import {
Expand Down Expand Up @@ -134,7 +133,7 @@ beforeEach(() => {
projectAnnotations.render.mockClear();
projectAnnotations.decorators[0].mockClear();
docsRenderer.render.mockClear();
(logger.warn as jestMock.Mock<typeof logger.warn>).mockClear();
(logger.warn as jest.Mock<typeof logger.warn>).mockClear();
mockStoryIndex.mockReset().mockReturnValue(storyIndex);

addons.setChannel(mockChannel as any);
Expand Down

0 comments on commit f84161b

Please sign in to comment.