Open toxsick opened 2 years ago
Thanks a lot for this @toxsick, this was indeed mentioned in an old draft. Glad to see someone else has needed this enough to have some code!
Looping in @virtuoushub, can you have a look at this?
🌊 @toxsick - I have used the information you provided (thank you so much!) and implemented this over at https://github.com/redwoodjs/example-storybook/pull/115
One thing to note is that it seems to be a bit finicky if there is a test failure. If ay test fails, it looks like jest does not run other tests. Need to look more into what is going on, but initial testing seems very promising.
Will report back, once I know more.
One thing to note is that it seems to be a bit finicky if there is a test failure. If ay test fails, it looks like jest does not run other tests
@virtuoushub I have no context, but is it possible there's a failFast
setting or something like that that's enabled?
One thing to note is that it seems to be a bit finicky if there is a test failure. If ay test fails, it looks like jest does not run other tests
@virtuoushub I have no context, but is it possible there's a
failFast
setting or something like that that's enabled?
hard to say, there is so much webpack/storybook/react/jest abstraction layers at play that I need to spend a bit more time to know more.
fwiw, got this working over at: https://github.com/redwoodjs/example-storybook
relevant code:
my main take away is that it is not ready for core. Making this more of a userland decision, with documentation to help those who want to get it working is the path I recommend.
As @virtuoushub said, we won't be integrating this yet. That doesn't preclude us from doing so in the future though—most likely after storybook v7. But it's possible to set up right now using the example he's pointed to.
Summary
There is #2064 for extended config features around storybook and it explicitly motions stroryshots:
I think this is possible right now.
Motivation
To get storyshots support in redwood core.
Detailed proposal
Here is my current setup to get storyshots working with redwood:
Are you interested in working on this?