Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove react hook test package #345

Merged
merged 5 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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.
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