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

CLI: Remove CRA fixtures from Yarn 2 tests run #10720

Merged
merged 1 commit into from
May 11, 2020
Merged

Conversation

gaetanmaisse
Copy link
Member

@gaetanmaisse gaetanmaisse commented May 10, 2020

What I did

When testing Yarn 2 compatibility of Storybook CLI, we are using Yarn 2 in fixture directories inside a Yarn 1 workspace. To access local versions of @storybook packages we use Yarn 2 portal protocol.

However, it looks like CRA is not playing well with portal protocol and is throwing this kind of error: Relative imports outside of src/ are not supported..

As new E2E tests will be soon available - see #10702, I just removed the CRA tests (that are always 🔴) instead of trying to hack them a bit more.

@gaetanmaisse gaetanmaisse force-pushed the fix-yarn-2-cli-tests branch from 5225403 to ea57fb2 Compare May 10, 2020 10:13
@gaetanmaisse gaetanmaisse added cli maintenance User-facing maintenance tasks and removed in progress labels May 10, 2020
@gaetanmaisse gaetanmaisse changed the title test(cli): use latest dep versions in react_scripts_ts fixture CLI: Remove CRA fixtures from Yarn 2 tests run May 10, 2020
@gaetanmaisse gaetanmaisse marked this pull request as ready for review May 10, 2020 10:55
When testing Yarn 2 compatibility of Storybook CLI, we are using Yarn 2 in fixture directories inside a Yarn 1 workspace.
To access local versions of `@storybook` packages we use Yarn 2 `portal` protocol (see berryfy_package_json.js). However, it looks like CRA is not playing well with `portal` protocol and is throwing this kind of error: `Relative imports outside of src/ are not supported.`.

As new E2E tests will be soon available, I just removed the CRA tests instead of trying to hack them a bit more.
@gaetanmaisse gaetanmaisse force-pushed the fix-yarn-2-cli-tests branch from ea57fb2 to 37f29dc Compare May 10, 2020 10:58
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!!

@shilman shilman merged commit 15889ee into next May 11, 2020
@stof stof deleted the fix-yarn-2-cli-tests branch May 25, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants