Skip to content

Commit fb44d67

Browse files
meta: bump @testing-library/react from 14.2.2 to 15.0.5 in the testing group (#6689)
* meta: bump @testing-library/react in the testing group Bumps the testing group with 1 update: [@testing-library/react](https://github.com/testing-library/react-testing-library). Updates `@testing-library/react` from 14.2.2 to 15.0.5 - [Release notes](https://github.com/testing-library/react-testing-library/releases) - [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md) - [Commits](testing-library/react-testing-library@v14.2.2...v15.0.5) --- updated-dependencies: - dependency-name: "@testing-library/react" dependency-type: direct:development update-type: version-update:semver-major dependency-group: testing ... Signed-off-by: dependabot[bot] <[email protected]> * fixes test warning --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Brian Muenzenmeyer <[email protected]>
1 parent 0161a80 commit fb44d67

File tree

3 files changed

+55
-9
lines changed

3 files changed

+55
-9
lines changed

components/Common/Tabs/__tests__/index.test.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as TabsPrimitive from '@radix-ui/react-tabs';
2-
import { render, screen } from '@testing-library/react';
2+
import { act, render, screen } from '@testing-library/react';
33
import userEvent from '@testing-library/user-event';
44

55
import Tabs from '../index';
@@ -38,7 +38,9 @@ describe('Tabs', () => {
3838

3939
expect(screen.getByRole('tabpanel')).toHaveTextContent('Package Manager');
4040

41-
await userEvent.click(screen.getByRole('tab', { name: 'Source Code' }));
41+
await act(async () => {
42+
await userEvent.click(screen.getByRole('tab', { name: 'Source Code' }));
43+
});
4244

4345
expect(screen.getByRole('tabpanel')).toHaveTextContent('Source Code');
4446
});

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"@storybook/addon-viewport": "~8.0.5",
100100
"@storybook/nextjs": "~8.0.5",
101101
"@testing-library/jest-dom": "~6.4.2",
102-
"@testing-library/react": "~14.2.2",
102+
"@testing-library/react": "~15.0.5",
103103
"@testing-library/user-event": "~14.5.2",
104104
"@types/jest": "29.5.12",
105105
"@types/react": "^18.2.73",

0 commit comments

Comments
 (0)