Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance: Rename testing-utils paths to portable-stories #25888

Merged
merged 3 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/lib/preview-api/src/modules/store/csf/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export * from './normalizeProjectAnnotations';
export * from './getValuesFromArgTypes';
export * from './composeConfigs';
export * from './stepRunners';
export * from './testing-utils';
export * from './portable-stories';
2 changes: 1 addition & 1 deletion code/renderers/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './globals';

export * from './public-types';

export * from './testing-api';
export * from './portable-stories';

// optimization: stop HMR propagation in webpack
if (typeof module !== 'undefined') module?.hot?.decline();
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { expectTypeOf } from 'expect-type';
import type { Meta } from '@storybook/vue3';
import * as stories from './Button.stories';
import type Button from './Button.vue';
import { composeStories, composeStory, setProjectAnnotations } from '../../testing-api';
import { composeStories, composeStory, setProjectAnnotations } from '../../portable-stories';

// example with composeStories, returns an object with all stories composed with args/decorators
const { CSF3Primary } = composeStories(stories);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { addons } from '@storybook/preview-api';
import { render, screen } from '@testing-library/vue';
import { describe, it, expect } from 'vitest';

import { composeStories, composeStory } from '../../testing-api';
import { composeStories, composeStory } from '../../portable-stories';

import * as stories from './Button.stories';

Expand Down
2 changes: 1 addition & 1 deletion code/renderers/vue3/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './globals';

export { setup } from './render';
export * from './public-types';
export * from './testing-api';
export * from './portable-stories';

// optimization: stop HMR propagation in webpack
try {
Expand Down
Loading