8000 Fix bug where @storybook/test is not imported but canvas is used dire… · storybookjs/storybook@46aa6e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 46aa6e0

Browse files
committed
Fix bug where @storybook/test is not imported but canvas is used directly from context
1 parent ceb8387 commit 46aa6e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/addons/interactions/src/preview.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import type { PlayFunction, StepLabel, StoryContext } from 'storybook/internal/types';
22

33
import { instrument } from '@storybook/instrumenter';
4+
// This makes sure that storybook test loaders are always loaded when addon-interactions is used
5+
// For 9.0 we want to merge storybook/test and addon-interactions into one addon.
6+
import '@storybook/test';
47

58
export const { step: runStep } = instrument(
69
{

0 commit comments

Comments
 (0)
0