Skip to content

Commit 8721cac

Browse files
committed
Remove @storybook/jest
1 parent b23f10f commit 8721cac

File tree

3 files changed

+1
-69
lines changed

3 files changed

+1
-69
lines changed

package-lock.json

Lines changed: 0 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"@storybook/addon-links": "^6.5.3",
8585
"@storybook/addon-postcss": "^2.0.0",
8686
"@storybook/addons": "^6.5.3",
87-
"@storybook/jest": "^0.0.10",
8887
"@storybook/react": "^6.5.3",
8988
"@storybook/testing-library": "^0.0.13",
9089
"@testing-library/jest-dom": "^5.14.1",

src/modal/modal-stories-components.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createContext, useCallback, useContext, useMemo, useState } from 'react'
22
import { within, userEvent } from '@storybook/testing-library'
3-
import { expect } from '@storybook/jest'
43

54
import { Placeholder, times } from '../utils/storybook-helper'
65
import { SelectField } from '../select-field'
@@ -246,7 +245,7 @@ function ModalActions(props: WithOptionals<ModalFooterProps, 'withDivider'>) {
246245
export async function openModal({ canvasElement }: { canvasElement: HTMLElement }) {
247246
const canvas = within(canvasElement)
248247
userEvent.click(canvas.getByRole('button', { name: 'Open modal' }))
249-
expect(await canvas.findByRole('dialog')).toBeInTheDocument()
248+
await canvas.findByRole('dialog')
250249
}
251250

252251
export { Link, ModalStoryStateProvider, ModalOptionsForm, ModalButton as Button, ScrollableContent }

0 commit comments

Comments
 (0)