Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Feb 6, 2025
1 parent 0c3c48a commit cfc2b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/core/src/core-server/utils/StoryIndexGenerator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { csfIndexer } from '../presets/common-preset';
import type { StoryIndexGeneratorOptions } from './StoryIndexGenerator';
import { StoryIndexGenerator } from './StoryIndexGenerator';

vi.mock('@storybook/csf', async (importOriginal) => {
const csf = await importOriginal<typeof import('@storybook/csf')>();
vi.mock('@storybook/core/csf', async (importOriginal) => {
const csf = await importOriginal<typeof import('@storybook/core/csf')>();
return {
...csf,
toId: vi.fn(csf.toId),
Expand Down
2 changes: 1 addition & 1 deletion code/lib/test/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export * from './spy';

type Queries = BoundFunctions<typeof queries>;

declare module '@storybook/csf' {
declare module '@storybook/core/csf' {
interface Canvas extends Queries {}
interface StoryContext {
// TODO enable this in a later PR, once we have time to QA this properly
Expand Down

0 comments on commit cfc2b59

Please sign in to comment.