Fix bug where @storybook/test is not imported but canvas is used directly from context

This commit is contained in:
Kasper Peulen 2024-09-11 11:26:34 +02:00
parent ceb8387e24
commit 46aa6e01ff

View File

@ -1,6 +1,9 @@
import type { PlayFunction, StepLabel, StoryContext } from 'storybook/internal/types';
import { instrument } from '@storybook/instrumenter';
// This makes sure that storybook test loaders are always loaded when addon-interactions is used
// For 9.0 we want to merge storybook/test and addon-interactions into one addon.
import '@storybook/test';
export const { step: runStep } = instrument(
{