Closed majoncas-ue closed 1 year ago
Finally I ended up implementing some decorators to get around this!
Do you mind sharing them?
Sure, here is the thread from Storybook Discord channel https://discord.com/channels/486522875931656193/1101148717349879892/1101149294515474443
In storybook we are able to access actions trigerred from a story that are seen in the Actions tab through the parameters second argument from a "play" function and then I can validate that this action has been called. I'd like to be able to do the same thing but to access the "React router" tab actions. Basically I wish I could assert that a navigation action has been called upon clicking on my link. Is there any workaround ?