Cypress + Storybook 2.0 blog entry - preview falls outside of src/ directory #16685
Unanswered
yann-combarnous
asked this question in
Component Testing
Replies: 1 comment
-
@yann-combarnous Were you able to fix this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I attempted to implement the example in blog entry https://www.cypress.io/blog/2021/05/19/cypress-x-storybook-2-0/, and got an error when importing Storybook's preview file in Cypress /support/index.js:
import * as sbPreview from "../../.storybook/preview";
Error: You attempted to import ../../.storybook/preview which falls outside of the project src/ directory
Any tip on how to make this work with Cypress webpack dev server (we use CRA, '@cypress/react/plugins/react-scripts')?
Beta Was this translation helpful? Give feedback.
All reactions