Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Nov 25, 2022
1 parent ac4e8e9 commit e066923
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/lib/preview-api/src/modules/core-client/start.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* global window */
import { STORY_RENDERED, STORY_UNCHANGED, SET_INDEX } from '@storybook/core-events';

import type { Addon_Loadable, ModuleExports, Path } from '@storybook/types';
import type { ModuleExports, Path } from '@storybook/types';
import global from 'global';
import { setGlobalRender } from '../../client-api';
import {
Expand All @@ -17,6 +17,7 @@ import {
} from './PreviewWeb.mockdata';

import { start as realStart } from './start';
import type { Loadable } from './executeLoadable';

jest.mock('global', () => ({
...jest.requireActual('global'),
Expand Down Expand Up @@ -81,7 +82,7 @@ const start: typeof realStart = (...args) => {

const configure: typeof result['configure'] = (
framework: string,
loadable: Addon_Loadable,
loadable: Loadable,
m?: NodeModule,
disableBackwardCompatibility = false
) => result.configure(framework, loadable, m, disableBackwardCompatibility);
Expand Down

0 comments on commit e066923

Please sign in to comment.