Storyshots continues feedback during run
Norbert de Langen
The way storyshots currently works prevents it from showing feedback during runs. Only after every story has been run, is there any feedback.
This is disturbing especially for large storybooks, as the process seems to hang, and gives the impression is broken.
It would be much nicer is all stories are run individually.
This has a couple of other improvements as well: The stories can be sharded over multiple CPU's, individual stories can be re-run and failures are detected faster.
The idea is to overhaul storyshots to not wrap ALL stories, but instead run story-files directly in jest, and provide a storybook facade for it's api's.
This would remove a lot of complexity for us as well, as most options can be deprecated.
Anna Loukianova
It would also be helpful to be able to run one suite per
main.js
import line. ie, if the story imports in my main.js file look like this,
stories: [
'../src/admin/*
/
.story.@(js)','../src/customer/*
/
.story.@(js)','../src/shared/modules/*
/
.story.@(js)','../src/shared/styleguide/*
/
.story.@(js)',],
I would like one suite per import. This would be a good interim way to get feedback on the smaller directories while the larger ones are running, and they could run in parallel.