File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
// We need this import to be a singleton, and because it's used in multiple entrypoints
2
2
// both in ESM and CJS, importing it via the package name instead of having a local import
3
3
// is the only way to achieve it actually being a singleton
4
+ import { fn } from '@storybook/test' ;
5
+
4
6
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
7
// @ts -ignore we must ignore types here as during compilation they are not generated yet
6
- import { headers } from '@storybook/nextjs/headers.mock' ;
7
- import { fn } from '@storybook/test' ;
8
+ import { headers } from '@storybook/experimental-nextjs-vite/headers.mock' ;
8
9
9
10
import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies' ;
10
11
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import type { Addon_DecoratorFunction, Addon_LoaderFunction } from 'storybook/in
5
5
// is the only way to achieve it actually being a singleton
6
6
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
7
7
// @ts -ignore we must ignore types here as during compilation they are not generated yet
8
- import { cookies , headers } from '@storybook/nextjs/headers.mock' ;
9
8
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
10
9
// @ts -ignore we must ignore types here as during compilation they are not generated yet
11
10
import { createNavigation } from '@storybook/nextjs/navigation.mock' ;
You can’t perform that action at this time.
0 commit comments