You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I am trying to create a new resolver to handle ElysiaJS's extension of TypeBox schemas.
I could not get tests running in the @hookform/resolvers repo and eventually realised they will hang when using Vitest version 3.0.9 even though the package.json currently specifies: "vitest": "^3.0.9",
I can now get the tests to run using bun run test (CONTRIBUTING.md currently says bun test which does not work) but I get these results on tag v5.2.2:
Many of these failing tests are due to the same underlying issue:
stderr | arktype/src/__tests__/arktype.ts > arktypeResolver > should correctly infer the output type from a arktype schema for the handleSubmit function in useForm
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
I am guessing bun has just installed the incorrect version of some testing package, but I can't really understand how these tests would ever pass in a development environment without the use of something like renderHook from react-testing-library.
Any help would be greatly appreciated, I'd love to contribute to this project.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So I am trying to create a new resolver to handle ElysiaJS's extension of TypeBox schemas.
I could not get tests running in the @hookform/resolvers repo and eventually realised they will hang when using Vitest version 3.0.9 even though the package.json currently specifies:
"vitest": "^3.0.9",I can now get the tests to run using
bun run test(CONTRIBUTING.md currently saysbun testwhich does not work) but I get these results on tagv5.2.2:Many of these failing tests are due to the same underlying issue:
I am guessing bun has just installed the incorrect version of some testing package, but I can't really understand how these tests would ever pass in a development environment without the use of something like
renderHookfrom react-testing-library.Any help would be greatly appreciated, I'd love to contribute to this project.
Beta Was this translation helpful? Give feedback.
All reactions