Skip to content

Commit

Permalink
chore: remove react 17 warnings on test (#2667)
Browse files Browse the repository at this point in the history
## What's the purpose of this pull request?

- Remove React 17 warnings on test
  • Loading branch information
matheusps authored Feb 3, 2025
1 parent 0102431 commit d9f8bc5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"devDependencies": {
"@size-limit/preset-small-lib": "^7.0.8",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react": "^14.3.0",
"fake-indexeddb": "^3.1.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/test/analytics/useAnalyticsEvent.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'

import { useAnalyticsEvent } from '../../src/analytics/useAnalyticsEvent'
import { wrap } from '../../src/analytics/wrap'
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/test/search/Provider.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, renderHook } from '@testing-library/react-hooks'
import { act, renderHook } from '@testing-library/react'
import type { ComponentPropsWithoutRef } from 'react'
import React from 'react'

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/test/search/usePagination.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import React, { type PropsWithChildren } from 'react'

import { initSearchState, SearchProvider, usePagination } from '../../src'
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/test/ui/Provider.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { type PropsWithChildren } from 'react'
import { act, renderHook } from '@testing-library/react-hooks'
import { act, renderHook } from '@testing-library/react'
import type { FC } from 'react'

import { UIProvider, useGlobalUIState } from '../../src'
Expand Down
15 changes: 0 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5308,14 +5308,6 @@
lodash "^4.17.21"
redent "^3.0.0"

"@testing-library/react-hooks@^8.0.1":
version "8.0.1"
resolved "https://registry.npmjs.org/@testing-library/react-hooks/-/react-hooks-8.0.1.tgz"
integrity sha512-Aqhl2IVmLt8IovEVarNDFuJDVWVvhnr9/GCU6UUnrYXwgDFF9h2L2o2P9KBni1AST5sT6riAyoukFLyjQUgD/g==
dependencies:
"@babel/runtime" "^7.12.5"
react-error-boundary "^3.1.0"

"@testing-library/react@^14.3.0":
version "14.3.1"
resolved "https://registry.npmjs.org/@testing-library/react/-/react-14.3.1.tgz"
Expand Down Expand Up @@ -16101,13 +16093,6 @@ react-dom@^18.2.0:
loose-envify "^1.1.0"
scheduler "^0.23.0"

react-error-boundary@^3.1.0:
version "3.1.4"
resolved "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-3.1.4.tgz"
integrity sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==
dependencies:
"@babel/runtime" "^7.12.5"

react-intersection-observer@^8.32.5:
version "8.34.0"
resolved "https://registry.npmjs.org/react-intersection-observer/-/react-intersection-observer-8.34.0.tgz"
Expand Down

0 comments on commit d9f8bc5

Please sign in to comment.