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
On this guide to migrate the storyshots to the latest storybook version (for jest) the function getAllStoryFiles does not return the componentName that is needed but comparing with Vitest it does return it.
So my suggestion it is just to update the following function:
functiongetAllStoryFiles(){conststoryFiles=glob.sync(path.join(__dirname,'../**/*.{stories,story}.{js,jsx,mjs,ts,tsx}'),);returnstoryFiles.map((filePath)=>{conststoryFile=require(filePath);+constcomponentName=path.basename(filePath).replace(/\.(stories|story)\.[^/.]+$/,'');return{ filePath, storyFile, componentName };// return the componentName});}
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
On this guide to migrate the storyshots to the latest storybook version (for jest) the function
getAllStoryFiles
does not return thecomponentName
that is needed but comparing with Vitest it does return it.So my suggestion it is just to update the following function:
Additional context
No response
The text was updated successfully, but these errors were encountered: