-
Notifications
You must be signed in to change notification settings - Fork 8
[Bug] ignoredException
instead of helpful error from testing-library
#8
Comments
Here is a repo is reproduces this issue. https://github.com/IanVS/storybook-test-library-issue-8 I found that the |
According to @ghengeveld we need to do a string comparison instead of comparing the error instances |
I am getting this error also, is there any workaround to it other than to use |
@Anupheaus I haven't been seeing this error in the latest 7.0 alphas and latest versions of @storybook/testing-library. What versions are you using, and are you using the vite builder or webpack? |
We are using webpack and are using the following versions:
|
I'd be curious if updating to the latest 7.0 alpha and latest version of this library would help. It's a pretty easy migration if you want to try it out. (run |
@nodegin, you mentioned getting this error. Can you share what situation you're seeing it in, and what version of storybook you're using? |
@IanVS I get the |
@nodegin can you share a reproduction, perhaps? |
Describe the bug
After starting to use
@storybook/testing-library
, I find that I often get an error of:instead of the usually-helpful errors I'm used to from testing-library. For instance, I was trying to
screen.getByRole('form')
, and got this error. I swapped out thescreen
import to@testing-library/react
, and I got a more usable error ofSteps to reproduce the behavior
https://github.com/IanVS/storybook-test-library-issue-8
Check it out, and run
yarn
thenyarn storybook
and the button primary story should error with a helpful message, but doesn't.Expected behavior
I should see the same errors that I get from the normal testing-library methods.
Screenshots and/or logs
Environment
Additional context
I'm using version 0.0.7 of this package, and 6.4.0 of storybook.
The text was updated successfully, but these errors were encountered: