diff --git a/code/addons/test/src/index.ts b/code/addons/test/src/index.ts index dafa948eda6c..9a3583d228c5 100644 --- a/code/addons/test/src/index.ts +++ b/code/addons/test/src/index.ts @@ -1,2 +1,9 @@ +import type { storybookTest as storybookTestImport } from './plugin'; + // make it work with --isolatedModules export default {}; + +// @ts-expect-error - this is a hack to make the module's sub-path augmentable +declare module '@storybook/experimental-addon-test/vite-plugin' { + export const storybookTest: typeof storybookTestImport; +}