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

chore(deps-dev): bump @testing-library/jest-dom from 5.16.4 to 6.1.3 #1412

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/strong-apricots-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ingred-ui": patch
---

fix test cases using testing-library-jest
2 changes: 1 addition & 1 deletion .scaffdog/component.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Container = styled.div``;

```typescript
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import {{ inputs.name | pascal }} from "../";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@storybook/addon-storysource": "7.4.0",
"@storybook/react": "7.4.0",
"@storybook/react-vite": "7.4.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/jest-dom": "6.1.3",
"@testing-library/react": "14.0.0",
"@types/jest": "29.5.1",
"@types/react": "18.0.12",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accordion/__tests__/Accordion.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import Accordion from "../";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import ActionButton from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Backdrop/__tests__/Backdrop.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import Backdrop from "../";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Badge/__tests__/Badge.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Badge from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/__tests__/Button.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Button from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import ButtonGroup from "..";
import Button from "../../Button";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/__tests__/Card.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Card from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Checkbox/__tests__/Checkbox.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Checkbox from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup, render, act, fireEvent } from "@testing-library/react";
import ClickAwayListener from "../ClickAwayListener";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import ConfirmModal from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup, fireEvent, act } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import ContextMenu from "../ContextMenu";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import CreatableSelect from "../CreatableSelect";
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataTable/__tests__/DataTable.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import DataTable from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/DatePicker/__tests__/DatePicker.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import DatePicker from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import DateRangePicker from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Divider/__tests__/Divider.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Divider from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup, act, fireEvent } from "@testing-library/react";
import DropdownButton from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorText/__tests__/ErrorText.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import ErrorText from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import FileUploader from "../";
Expand Down
2 changes: 1 addition & 1 deletion src/components/FixedPanel/__tests__/FixedPanel.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import FixedPanel from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Flex/__tests__/Flex.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Flex from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import FloatingTip from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import FullSizeConfirmModal from "../FullSizeConfirmModal";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/__tests__/Icon.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Icon from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Input/__tests__/Input.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Input from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemEmpty/__tests__/ItemEmpty.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import ItemEmpty from "../ItemEmpty";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoadingBar/__tests__/LoadingBar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import LoadingBar from "../LoadingBar";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import LocaleProvider from "../";
Expand Down
2 changes: 1 addition & 1 deletion src/components/MenuList/__tests__/MenuList.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import MenuList from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/__tests__/Modal.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Modal from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import MultipleFilter from "../";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import NavigationRail from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import NotificationBadge from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pager/__tests__/Pager.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Pager from "../Pager";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover/__tests__/Popover.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Popover from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import RadioButton from "../RadioButton";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ScrollArea/__tests__/ScrollArea.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import ScrollArea from "../";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Select/__tests__/Select.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Select from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Snackbar/__tests__/Snackbar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Snackbar from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Spacer/__tests__/Spacer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup, render } from "@testing-library/react";
import Spacer from "../";
import { Space } from "../../../styles/space";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Spinner/__tests__/Spinner.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Spinner from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import SplitAnnotation from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Switch/__tests__/Switch.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Switch from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/__tests__/Table.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Table from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tabs/__tests__/Tabs.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Tabs from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextField/__tests__/TextField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import TextField from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import DefaultToast from "..";
import { renderWithThemeProvider } from "../../../../utils/renderWithThemeProvider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import ToggleButton from "..";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/__tests__/Tooltip.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
import Tooltip from "../Tooltip";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Typography/__tests__/Typography.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { cleanup } from "@testing-library/react";
import Typography from "../";
import { renderWithThemeProvider } from "../../../utils/renderWithThemeProvider";
Expand Down
Loading