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
When using the testing module, any unhandled error can be seen in Storybook:
However, the error message in the terminal is far more useful for debugging my failed test:
storybook/test: ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
storybook/test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: handleSubmit is not a function
❯ onSubmit src/stories/CreateAccount.tsx:67:52
storybook/test: 65| <div className='form-wrapper'>
66| <h2>Create Account</h2>
67| <form onSubmit={(e) => {e.preventDefault(); handleSubmit();}} …
| ^
68| <div className='fullName'>
69| <InputField
storybook/test:
storybook/test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Can we pipe this error message instead of (or in addition to??) the stack trace?
The text was updated successfully, but these errors were encountered:
When using the testing module, any unhandled error can be seen in Storybook:
However, the error message in the terminal is far more useful for debugging my failed test:
Can we pipe this error message instead of (or in addition to??) the stack trace?
The text was updated successfully, but these errors were encountered: