Skip to content

Commit

Permalink
chore: remove outdated @testing-library/react-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhsuresh committed Oct 26, 2024
1 parent dfb5d6b commit 9219ec7
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 26 deletions.
1 change: 0 additions & 1 deletion apps/toolkit-app-passportjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion apps/toolkit-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion integration-tests/auth-with-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/blitz-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/blitz-auth/src/client/auth-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion packages/blitz-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/blitz-next/src/use-params.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion packages/generator/templates/app/package.ts.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/generator/templates/pages/package.js.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/generator/templates/pages/package.ts.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/generator/templates/pages/test/utils.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
15 changes: 0 additions & 15 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 9219ec7

Please sign in to comment.