Skip to content

Commit

Permalink
Remove @storybook/jest
Browse files Browse the repository at this point in the history
  • Loading branch information
gnapse committed Aug 16, 2024
1 parent b23f10f commit 8721cac
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 69 deletions.
66 changes: 0 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"@storybook/addon-links": "^6.5.3",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/addons": "^6.5.3",
"@storybook/jest": "^0.0.10",
"@storybook/react": "^6.5.3",
"@storybook/testing-library": "^0.0.13",
"@testing-library/jest-dom": "^5.14.1",
Expand Down
3 changes: 1 addition & 2 deletions src/modal/modal-stories-components.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createContext, useCallback, useContext, useMemo, useState } from 'react'
import { within, userEvent } from '@storybook/testing-library'
import { expect } from '@storybook/jest'

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

export { Link, ModalStoryStateProvider, ModalOptionsForm, ModalButton as Button, ScrollableContent }
Expand Down

0 comments on commit 8721cac

Please sign in to comment.