3 Commits

Author SHA1 Message Date
Gaëtan Maisse
37f29dc707
test(cli): don't test CLI against react_scripts fixtures with Yarn 2
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.
2020-05-10 12:58:15 +02:00
Gaëtan Maisse
a7e966d264 test: remove react_babel_6 refs in CLI tests
There is no more fixture related to `react_babel_6` so I removed all refs to that in scripts used to run CLI tests
2020-04-12 17:37:23 +02:00
Gaëtan Maisse
9e4f21640e test(cli): add tests to check Yarn 2 compatibility
These tests mimic the ones done to test SB CLI with "classic" yarn.
However, some magic setup and `package.json` customization are needed in order to make Yarn 2 works inside a Yarn v1 workspace.
2020-02-16 16:10:41 +01:00