NicholasBoll / cypress-storybook

Cypress commands for Storybook projects
MIT License
116 stars 20 forks source link

fix: Add toID method to support new storybook #10

Closed mannycarrera4 closed 4 years ago

mannycarrera4 commented 4 years ago

In storybook version 6.x storybook remove toId from storybook/router to storybook/csf so any consumer using a newer version of storybook the method setCurrentStory would break because it was using toId from storybook/router

This PR copies over storybooks method for toID so that it's not compatible with older versions of storybook and 6.x