Skip to content

Commit

Permalink
migrate storybook/testing-library to storybook/test
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 23, 2024
1 parent cb3dcfa commit 391945d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 41 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"@storybook/react": "^7.5.3",
"@storybook/react-vite": "^7.5.3",
"@storybook/test": "^7.5.3",
"@storybook/testing-library": "^0.2.0",
"@types/jest": "^29.0.0",
"@types/node": "^16.4.1",
"@vitejs/plugin-react": "^4.0.3",
Expand Down
2 changes: 1 addition & 1 deletion 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/test';
import { within, waitFor, userEvent, waitForElementToBeRemoved } from '@storybook/testing-library';
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
37 changes: 0 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4348,7 +4348,6 @@ __metadata:
"@storybook/react": ^7.5.3
"@storybook/react-vite": ^7.5.3
"@storybook/test": ^7.5.3
"@storybook/testing-library": ^0.2.0
"@swc/core": ^1.3.18
"@swc/jest": ^0.2.23
"@types/jest": ^29.0.0
Expand Down Expand Up @@ -4416,17 +4415,6 @@ __metadata:
languageName: node
linkType: hard

"@storybook/testing-library@npm:^0.2.0":
version: 0.2.2
resolution: "@storybook/testing-library@npm:0.2.2"
dependencies:
"@testing-library/dom": ^9.0.0
"@testing-library/user-event": ^14.4.0
ts-dedent: ^2.2.0
checksum: 8ccdc1fbbb3472264c56b0aaf2f1c5d273f1ae9b230a53adf9cf82bf82c1a555550894f0e8869c206fa07b1fe8423da4d56590377756c58de3ec560b35a96c46
languageName: node
linkType: hard

"@storybook/theming@npm:7.5.3":
version: 7.5.3
resolution: "@storybook/theming@npm:7.5.3"
Expand Down Expand Up @@ -4608,22 +4596,6 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/dom@npm:^9.0.0":
version: 9.3.3
resolution: "@testing-library/dom@npm:9.3.3"
dependencies:
"@babel/code-frame": ^7.10.4
"@babel/runtime": ^7.12.5
"@types/aria-query": ^5.0.1
aria-query: 5.1.3
chalk: ^4.1.0
dom-accessibility-api: ^0.5.9
lz-string: ^1.5.0
pretty-format: ^27.0.2
checksum: 34e0a564da7beb92aa9cc44a9080221e2412b1a132eb37be3d513fe6c58027674868deb9f86195756d98d15ba969a30fe00632a4e26e25df2a5a4f6ac0686e37
languageName: node
linkType: hard

"@testing-library/dom@npm:^9.3.1":
version: 9.3.4
resolution: "@testing-library/dom@npm:9.3.4"
Expand Down Expand Up @@ -4682,15 +4654,6 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/user-event@npm:^14.4.0":
version: 14.5.1
resolution: "@testing-library/user-event@npm:14.5.1"
peerDependencies:
"@testing-library/dom": ">=7.21.4"
checksum: 3e6bc9fd53dfe2f3648190193ed2fd4bca2a1bfb47f68810df3b33f05412526e5fd5c4ef9dc5375635e0f4cdf1859916867b597eed22bda1321e04242ea6c519
languageName: node
linkType: hard

"@tsconfig/node10@npm:^1.0.7":
version: 1.0.9
resolution: "@tsconfig/node10@npm:1.0.9"
Expand Down

0 comments on commit 391945d

Please sign in to comment.