diff --git a/apps/toolkit-app-passportjs/package.json b/apps/toolkit-app-passportjs/package.json index 97ef01b250..f02f7c8d39 100644 --- a/apps/toolkit-app-passportjs/package.json +++ b/apps/toolkit-app-passportjs/package.json @@ -43,7 +43,6 @@ "devDependencies": { "@next/bundle-analyzer": "12.0.8", "@testing-library/react": "16.0.1", - "@testing-library/react-hooks": "8.0.1", "@types/jest": "29.2.2", "@types/node": "18.11.9", "@types/preview-email": "2.0.1", diff --git a/apps/toolkit-app/package.json b/apps/toolkit-app/package.json index e1d133075c..80e298945b 100644 --- a/apps/toolkit-app/package.json +++ b/apps/toolkit-app/package.json @@ -45,7 +45,6 @@ "@next/bundle-analyzer": "12.0.8", "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "16.0.1", - "@testing-library/react-hooks": "8.0.1", "@types/node": "18.11.9", "@types/preview-email": "2.0.1", "@types/react": "npm:types-react@rc", diff --git a/integration-tests/auth-with-rpc/package.json b/integration-tests/auth-with-rpc/package.json index 04c0c7825e..09a76e60fa 100644 --- a/integration-tests/auth-with-rpc/package.json +++ b/integration-tests/auth-with-rpc/package.json @@ -38,7 +38,6 @@ "@next/bundle-analyzer": "12.0.8", "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "16.0.1", - "@testing-library/react-hooks": "8.0.1", "@types/node": "18.11.9", "@types/preview-email": "2.0.1", "@types/react": "npm:types-react@rc", diff --git a/packages/blitz-auth/package.json b/packages/blitz-auth/package.json index 8a5635d8d8..b6e8d98cac 100644 --- a/packages/blitz-auth/package.json +++ b/packages/blitz-auth/package.json @@ -69,7 +69,6 @@ "devDependencies": { "@blitzjs/config": "2.1.3", "@testing-library/react": "16.0.1", - "@testing-library/react-hooks": "8.0.1", "@types/cookie": "0.4.1", "@types/debug": "4.1.7", "@types/jsonwebtoken": "8.5.8", diff --git a/packages/blitz-auth/src/client/auth-client.test.ts b/packages/blitz-auth/src/client/auth-client.test.ts index 35c5264155..eab2adac22 100644 --- a/packages/blitz-auth/src/client/auth-client.test.ts +++ b/packages/blitz-auth/src/client/auth-client.test.ts @@ -7,7 +7,7 @@ import {parsePublicDataToken, getPublicDataStore, useSession} from "./index" import {COOKIE_PUBLIC_DATA_TOKEN} from "../shared" import {toBase64} from "b64-lite" import {act} from "@testing-library/react" -import {renderHook} from "@testing-library/react-hooks" +import {renderHook} from "@testing-library/react" vi.mock("blitz", async () => { const blitz = await vi.importActual("blitz") diff --git a/packages/blitz-next/package.json b/packages/blitz-next/package.json index 92bfba24cb..571eacbea6 100644 --- a/packages/blitz-next/package.json +++ b/packages/blitz-next/package.json @@ -49,7 +49,6 @@ "@testing-library/dom": "8.13.0", "@testing-library/jest-dom": "5.16.3", "@testing-library/react": "16.0.1", - "@testing-library/react-hooks": "8.0.1", "@testing-library/user-event": "13.5.0", "@types/debug": "4.1.7", "@types/node": "18.11.9", diff --git a/packages/blitz-next/src/use-params.test.tsx b/packages/blitz-next/src/use-params.test.tsx index 4adbf3a1b1..42d56d2a6a 100644 --- a/packages/blitz-next/src/use-params.test.tsx +++ b/packages/blitz-next/src/use-params.test.tsx @@ -4,7 +4,7 @@ import React from "react" import {describe, it, expect, vi, afterEach} from "vitest" import {extractRouterParams, useParam, useParams} from "./use-params" -import {renderHook as defaultRenderHook} from "@testing-library/react-hooks" +import {renderHook as defaultRenderHook} from "@testing-library/react" import {NextRouter} from "next/router" import {RouterContext} from "./router-context" diff --git a/packages/generator/templates/app/package.ts.json b/packages/generator/templates/app/package.ts.json index 968fe92d4b..25ff42e1ce 100644 --- a/packages/generator/templates/app/package.ts.json +++ b/packages/generator/templates/app/package.ts.json @@ -42,7 +42,6 @@ "@next/env": "13.4.19", "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "16.0.1", - "@testing-library/react-hooks": "8.0.1", "@types/node": "18.11.9", "@types/preview-email": "2.0.1", "@types/react": "18.0.25", diff --git a/packages/generator/templates/pages/package.js.json b/packages/generator/templates/pages/package.js.json index 99eefd3dce..f75693b261 100644 --- a/packages/generator/templates/pages/package.js.json +++ b/packages/generator/templates/pages/package.js.json @@ -38,7 +38,6 @@ "@next/bundle-analyzer": "12.0.8", "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "16.0.1", - "@testing-library/react-hooks": "8.0.1", "@types/node": "18.11.9", "@types/preview-email": "2.0.1", "@types/react": "18.0.25", diff --git a/packages/generator/templates/pages/package.ts.json b/packages/generator/templates/pages/package.ts.json index c8c22b2bbe..77867b0103 100644 --- a/packages/generator/templates/pages/package.ts.json +++ b/packages/generator/templates/pages/package.ts.json @@ -39,7 +39,6 @@ "@next/env": "13.4.19", "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "16.0.1", - "@testing-library/react-hooks": "8.0.1", "@types/node": "18.11.9", "@types/preview-email": "2.0.1", "@types/react": "18.0.25", diff --git a/packages/generator/templates/pages/test/utils.tsx b/packages/generator/templates/pages/test/utils.tsx index 350e7b86de..0c9c13ed90 100644 --- a/packages/generator/templates/pages/test/utils.tsx +++ b/packages/generator/templates/pages/test/utils.tsx @@ -1,7 +1,7 @@ import {vi} from "vitest" import { render as defaultRender } from "@testing-library/react" -import { renderHook as defaultRenderHook } from "@testing-library/react-hooks" +import { renderHook as defaultRenderHook } from "@testing-library/react" import { NextRouter } from "next/router" import {BlitzProvider, RouterContext} from "@blitzjs/next" import { QueryClient } from "@blitzjs/rpc" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9baca5845f..8e8a891ffd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -194,9 +194,6 @@ importers: "@testing-library/react": specifier: 16.0.1 version: 16.0.1(@testing-library/dom@10.4.0)(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react-dom@19.0.0-rc.1)(types-react@19.0.0-rc.1) - "@testing-library/react-hooks": - specifier: 8.0.1 - version: 8.0.1(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react@19.0.0-rc.1) "@types/node": specifier: 18.11.9 version: 18.11.9 @@ -309,9 +306,6 @@ importers: "@testing-library/react": specifier: 16.0.1 version: 16.0.1(@testing-library/dom@10.4.0)(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react-dom@19.0.0-rc.1)(types-react@19.0.0-rc.1) - "@testing-library/react-hooks": - specifier: 8.0.1 - version: 8.0.1(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react@19.0.0-rc.1) "@types/jest": specifier: 29.2.2 version: 29.2.2 @@ -573,9 +567,6 @@ importers: "@testing-library/react": specifier: 16.0.1 version: 16.0.1(@testing-library/dom@10.4.0)(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react-dom@19.0.0-rc.1)(types-react@19.0.0-rc.1) - "@testing-library/react-hooks": - specifier: 8.0.1 - version: 8.0.1(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react@19.0.0-rc.1) "@types/node": specifier: 18.11.9 version: 18.11.9 @@ -1598,9 +1589,6 @@ importers: "@testing-library/react": specifier: 16.0.1 version: 16.0.1(@testing-library/dom@10.4.0)(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react-dom@19.0.0-rc.1)(types-react@19.0.0-rc.1) - "@testing-library/react-hooks": - specifier: 8.0.1 - version: 8.0.1(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react@19.0.0-rc.1) "@types/cookie": specifier: 0.4.1 version: 0.4.1 @@ -1683,9 +1671,6 @@ importers: "@testing-library/react": specifier: 16.0.1 version: 16.0.1(@testing-library/dom@8.13.0)(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react-dom@19.0.0-rc.1)(types-react@19.0.0-rc.1) - "@testing-library/react-hooks": - specifier: 8.0.1 - version: 8.0.1(react-dom@19.0.0-rc-cae764ce-20241025)(react@19.0.0-rc-cae764ce-20241025)(types-react@19.0.0-rc.1) "@testing-library/user-event": specifier: 13.5.0 version: 13.5.0(@testing-library/dom@8.13.0)