Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow to import/require files in CRA plugin out of src #16453

Merged
merged 2 commits into from
May 11, 2021

Conversation

elevatebart
Copy link
Contributor

@elevatebart elevatebart commented May 11, 2021

User facing changelog

Add an option to the @cypress/react/plugins/react-scripts to allow additional folders to be transpiled and imported in the project

Additional details

When trying to mount storybook stories, we have to import .storybook/preview.js to get global imports and global decorators. These are outside of cypress and src and would fail with cra webpack-config.

How has the user experience changed?

We added an option to the plugin, the API has not changed.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 11, 2021

Thanks for taking the time to open a PR!

@elevatebart elevatebart changed the base branch from develop to master May 11, 2021 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to mount a CSF story
2 participants