-
Notifications
You must be signed in to change notification settings - Fork 561
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
[checkbox] useMixedCheckbox
logs unexpected dev warning in testing
#763
Comments
Does anyone have any idea for this issue? Bump. |
@themoor88 Do you get this error in any other situation than testing? |
No. It's only when I run tests. |
My first guess is that you need to wrap the act of creating the component with Will look into this tomorrow morning. |
@WojciechMatuszewski Any update on this? I tried to use |
Sorry for not answering initially, a lot of things is going on at my workplace. Could you please provide a codesandbox link / screenshot of how you modified your test? I should be able to take a look during the weekend. Sorry again. |
I think this can also just be a console warning instead of throwing TBH. We could silence it in a test env the same as we do with checking styles, or at least improve the message to make it easier to debug. |
I haven't had time to investigate the root issue here, but FYI the update I just released logs a warning instead of throwing. This might still be a bit annoying but hopefully less disruptive still than the error. |
As of 0.15.1 this should just be a warning. |
useMixedCheckbox
logs unexpected dev warning in testing
NOTE: As of 0.15.1 this should be a dev warning instead of an error, but I haven't had time to investigate the root cause.
-- Chance
🐛 Bug report
Current Behavior
This is my checkbox component.

This is my test.

This is what happens when I run the test.

Expected behavior
I am not using the useMixedCheckbox at all in my component yet my test errors out here.
Your environment
Reach Package - Checkbox v0.13.2
React -v17.0.1
Browser - Chrome -Version 88.0.4324.192 (Official Build) (x86_64)
Node - v14.9.0
Operating System - macOS Big Sur v11.2.3
The text was updated successfully, but these errors were encountered: