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

Auto migration: From @storybook/<jest|testing-library> to @storybook/test #25429

Closed
Tracked by #25432
vanessayuenn opened this issue Jan 3, 2024 · 1 comment · Fixed by #25958
Closed
Tracked by #25432

Auto migration: From @storybook/<jest|testing-library> to @storybook/test #25429

vanessayuenn opened this issue Jan 3, 2024 · 1 comment · Fixed by #25958
Assignees

Comments

@vanessayuenn
Copy link
Contributor

vanessayuenn commented Jan 3, 2024

This automigration should do the following:

- import { expect } from '@storybook/jest';
- import { within, userEvent } from '@storybook/testing-library';
+ import { within, userEvent, expect, fn } from '@storybook/test';

Explicit action args are handled in #25904

Questions

  • Which jest specific APIs do we want to transform to their vitest equivalent? (if any)
    -- jest.fn
    -- jest.spyOn
  • Codemod or automigration?
@yannbf yannbf changed the title Automigration from @storybook/<jest|testing-library> to @storybook/test Auto migration: From @storybook/<jest|testing-library> to @storybook/test Jan 3, 2024
@yannbf
Copy link
Member

yannbf commented Jan 23, 2024

Make sure to add a migration note regarding this change, so people are aware of this breaking change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants