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
Recently during migration from Jest to Vitest I've encountered that my tests were existing with process exit code 1 because one of my describe blocks was using the function reference as the name (Jest under the hood used .name therefore it was working as if we pass MyFunction.name) but with Vitest it just silently throws an error
Reproduction
functionMyReactHook(){constmyFunction=()=>{}return{myFunction}}describe(MyReactHook,()=>{it('should render',()=>{// TODO: This is just a mimic, we could use renderHook})})
The code above will lead to the problem shown on the screenshot below
Describe the bug
Recently during migration from Jest to Vitest I've encountered that my tests were existing with process exit code 1 because one of my describe blocks was using the function reference as the name (Jest under the hood used
.name
therefore it was working as if we passMyFunction.name
) but with Vitest it just silently throws an errorReproduction
The code above will lead to the problem shown on the screenshot below
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: