Skip to content

Commit

Permalink
e2e: use latest version of Yarn 2 when running tests
Browse files Browse the repository at this point in the history
Using `latest` keyword with yarn 1 resolves to Yarn 1.x but we need Yarn 2.
  • Loading branch information
gaetanmaisse committed Jun 30, 2020
1 parent 205daae commit bae2cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const cleanDirectory = async ({ cwd }: Options): Promise<void> => {

const configureYarn2 = async ({ cwd }: Options) => {
const command = [
`yarn set version 2`,
`yarn set version berry`,
// ⚠️ Need to set registry because Yarn 2 is not using the conf of Yarn 1
`yarn config set npmScopes --json '{ "storybook": { "npmRegistryServer": "http://localhost:6000/" } }'`,
// Some required magic to be able to fetch deps from local registry
Expand Down

0 comments on commit bae2cbc

Please sign in to comment.