Skip to content

Commit

Permalink
Fix bug where @storybook/test is not imported but canvas is used dire…
Browse files Browse the repository at this point in the history
…ctly from context
  • Loading branch information
kasperpeulen committed Sep 11, 2024
1 parent ceb8387 commit 46aa6e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/addons/interactions/src/preview.ts
Original file line number Diff line number Diff line change
@@ -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(
{
Expand Down

0 comments on commit 46aa6e0

Please sign in to comment.