Skip to content

Commit

Permalink
chore: update RTL and fix deprecation warnings from using act (#3966)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald authored Jun 28, 2024
1 parent 0773aa8 commit 79a9faf
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 37 deletions.
2 changes: 1 addition & 1 deletion config/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"babel-jest": "29.7.0",
"jest-watch-typeahead": "2.2.2",
"merge-deep": "3.0.3",
"react-test-renderer": "18.2.0"
"react-test-renderer": "18.3.1"
},
"peerDependencies": {
"jest": "29.x",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@marigold/jest-config": "workspace:*",
"@marigold/prettier-config": "workspace:*",
"@marigold/tsconfig": "workspace:*",
"@testing-library/dom": "10.1.0",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/dom": "10.2.0",
"@testing-library/jest-dom": "6.4.6",
"@testing-library/react": "16.0.0",
"@testing-library/user-event": "14.5.2",
"@types/node": "20.14.9",
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/Radio/Radio.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { fireEvent, screen, waitFor } from '@testing-library/react';
import { act, fireEvent, screen, waitFor } from '@testing-library/react';
import React from 'react';
import { act } from 'react-dom/test-utils';

import { Theme, ThemeProvider, cva } from '@marigold/system';

Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/SelectList/SelectList.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { fireEvent, render, screen, within } from '@testing-library/react';
import { act, fireEvent, render, screen, within } from '@testing-library/react';
import userEvent, { UserEvent } from '@testing-library/user-event';
import { createRef } from 'react';
import { useDragAndDrop } from 'react-aria-components';
import { DropIndicator } from 'react-aria-components';
import { act } from 'react-dom/test-utils';

import { Theme, ThemeProvider, cva } from '@marigold/system';

Expand Down
79 changes: 49 additions & 30 deletions pnpm-lock.yaml

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

0 comments on commit 79a9faf

Please sign in to comment.