Skip to content

Commit

Permalink
Upgrade @testing-library/* dependencies (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
darthmaim authored Dec 16, 2024
1 parent 4637cb2 commit 797b78e
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 238 deletions.
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,14 @@
"@babel/preset-typescript": "^7.26.0",
"@octokit/openapi-types": "18.0.0",
"@octokit/rest": "18.1.0",
"@testing-library/jest-dom": "^5.9.0",
"@testing-library/react": "^13.1.0",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^11.0.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.0",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^13.5.0",
"@types/enzyme": "^3.10.3",
"@types/jest": "^24.0.18",
"@types/jsdom": "^12.2.4",
"@types/node-fetch": "1.6.9",
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"airbnb-js-shims": "^2.2.1",
Expand Down Expand Up @@ -109,7 +108,6 @@
"raf": "^3.4.0",
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0",
"react-dom": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0",
"react-test-renderer": "^18.0.0",
"regenerator-runtime": "^0.10.5",
"timezone-mock": "^1.1.0",
"ts-node": "9.1.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/visx-responsive/test/useScreenSize.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { fireEvent, waitFor } from '@testing-library/react';
import { renderHook } from '@testing-library/react-hooks';
import { fireEvent, waitFor, renderHook } from '@testing-library/react';
import useScreenSize from '../src/hooks/useScreenSize';

const setWindowSize = (width: number, height: number) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/visx-text/test/Text.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { render } from '@testing-library/react';
import { renderHook } from '@testing-library/react-hooks';
import { render, renderHook } from '@testing-library/react';
import '@testing-library/jest-dom';
import { Text, getStringWidth, useText } from '../src';
import { addMock, removeMock } from './svgMock';
Expand Down
Loading

0 comments on commit 797b78e

Please sign in to comment.