Skip to content

Commit

Permalink
fix: Remove react hook test package (#345)
Browse files Browse the repository at this point in the history
* env: update vitest

* env: remove @testing-library/react-hooks

* chore: format

* env: add check command

* env: update dependencies
  • Loading branch information
JaeYeopHan authored Aug 16, 2024
1 parent 2a8f65a commit 23d3eed
Show file tree
Hide file tree
Showing 126 changed files with 2,129 additions and 884 deletions.
1,555 changes: 1,072 additions & 483 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/mlly-npm-1.4.2-75e10242a0-ea5dc1a6cb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ufo-npm-1.3.2-dcaf8105d0-7133290d49.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@
"@storybook/react-vite": "^7.6.4",
"@storybook/react-webpack5": "7.6.6",
"@storybook/theming": "7.6.6",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "6.1.5",
"@testing-library/react": "14.1.2",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/user-event": "14.5.2",
"@types/node": "^22.3.0",
"@types/react": "^18.2.43",
"@types/testing-library__jest-dom": "6.0.0",
"acorn": "8.11.3",
Expand All @@ -69,15 +70,21 @@
"ts-node": "10.4.0",
"tsup": "^8.0.1",
"typescript": "^5.5.4",
"vite": "^5.0.7",
"vitest": "^1.0.4"
"vite": "^5.4.0",
"vitest": "^2.0.5"
},
"resolutions": {
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vitest": "^2.0.5"
},
"workspaces": [
"packages/*",
"examples/*",
"website"
],
"scripts": {
"check": "yarn typecheck && yarn lint && yarn test",
"lint": "yarn workspaces foreach -ptR --from '@h6s/*' run lint",
"test": "yarn workspaces foreach -ptR --from '@h6s/*' run test",
"typecheck": "yarn workspaces foreach -ptR --from '@h6s/*' run typecheck",
Expand Down
12 changes: 7 additions & 5 deletions packages/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,28 @@
"lint": "yarn run -T biome check src/",
"lint:fix": "yarn lint --apply",
"typecheck": "yarn run -T tsc",
"test": "vitest",
"test": "yarn run -T vitest",
"test:playwright": "playwright test",
"test:cov": "yarn test --coverage",
"test:watch": "yarn test --watch"
},
"devDependencies": {
"@playwright/test": "1.17.1",
"@storybook/react": "7.6.6",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react": "^16.0.0",
"@types/node": "20.10.6",
"@types/react": "^18.2.43",
"date-fns": "2.30.0",
"jsdom": "^24.1.1",
"playwright": "1.17.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"typescript": "^5.3.3",
"vite": "^5.0.7",
"vitest": "^1.0.4"
"typescript": "*",
"vite": "*",
"vitest": "*"
},
"peerDependencies": {
"date-fns": ">= 2",
Expand Down
2 changes: 1 addition & 1 deletion packages/calendar/src/hooks/useIsMounted.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 { describe, expect, it } from "vitest";

import useIsMounted from "./useIsMounted";
Expand Down
2 changes: 1 addition & 1 deletion packages/calendar/src/useCalendar.test.ts
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 { describe, expect, it } from "vitest";

import { DecemberFirstWeekData, DecemberMonthMatrix } from "./mocks/mockDate";
Expand Down
1 change: 1 addition & 0 deletions packages/calendar/vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export default defineConfig({
passWithNoTests: true,
setupFiles: ['./vitest.setup.ts'],
watch: false,
environment: "jsdom"
},
})
7 changes: 3 additions & 4 deletions packages/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@
"devDependencies": {
"@storybook/react": "7.6.6",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react-hooks": "8.0.1",
"@types/node": "20.10.6",
"@types/react": "^18.2.43",
"happy-dom": "^12.10.3",
"jsdom": "^23.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"typescript": "^5.3.3",
"vite": "^5.0.7",
"vitest": "^1.0.4"
"typescript": "*",
"vite": "*",
"vitest": "*"
},
"peerDependencies": {
"react": ">= 18"
Expand Down
Loading

0 comments on commit 23d3eed

Please sign in to comment.