Skip to content

Commit

Permalink
Merge pull request #427 from storybookjs/norbert/migrate-to-test
Browse files Browse the repository at this point in the history
swap storybook/jest to storybook/test
  • Loading branch information
ndelangen authored Jan 23, 2024
2 parents 5cdd0e1 + 391945d commit 52487fc
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 132 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@
"@storybook/addon-coverage": "^0.0.9",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",
"@storybook/jest": "^0.2.2",
"@storybook/react": "^7.5.3",
"@storybook/react-vite": "^7.5.3",
"@storybook/testing-library": "^0.2.0",
"@storybook/test": "^7.5.3",
"@types/jest": "^29.0.0",
"@types/node": "^16.4.1",
"@vitejs/plugin-react": "^4.0.3",
Expand Down
4 changes: 2 additions & 2 deletions stories/atoms/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import { expect } from '@storybook/jest';
import { within, waitFor, userEvent, waitForElementToBeRemoved } from '@storybook/testing-library';
import { expect } from '@storybook/test';
import { within, waitFor, userEvent, waitForElementToBeRemoved } from '@storybook/test';

import { isTestRunner } from '../../.storybook/is-test-runner';

Expand Down
2 changes: 1 addition & 1 deletion stories/expected-failures/Failure.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { within, userEvent } from '@storybook/testing-library';
import { within, userEvent } from '@storybook/test';

import { Page } from '../pages/Page';

Expand Down
2 changes: 1 addition & 1 deletion stories/pages/Page.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react';
import { within, userEvent } from '@storybook/testing-library';
import { within, userEvent } from '@storybook/test';

import { Page } from './Page';

Expand Down
Loading

0 comments on commit 52487fc

Please sign in to comment.