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

chore: use npm instead of yarn in global install test #693

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ jobs:

- name: simulate global install
run: |
yarn install --production
yarn link
# yarn@1 is resolving incorrectly
# Error [ERR_REQUIRE_ESM]: require() of ES Module /node_modules/string-width/index.js from /node_modules/cliui/build/index.cjs not supported.
# yarn install --production
# yarn link
npm ci
npm link
working-directory: fixtures/global-install

- run: my-cli --headless
259 changes: 259 additions & 0 deletions fixtures/global-install/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion fixtures/global-install/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
"@faltest/cli": "file:../../packages/cli",
"@faltest/lifecycle": "file:../../packages/lifecycle"
},
"resolutions": {
"devDependencies": {
"@faltest/browser": "file:../../packages/browser",
"@faltest/mocha": "file:../../packages/mocha",
"@faltest/remote": "file:../../packages/remote",
"@faltest/utils": "file:../../packages/utils"
},
"overrides": {
"@faltest/browser": "file:../../packages/browser",
"@faltest/mocha": "file:../../packages/mocha",
"@faltest/remote": "file:../../packages/remote",
Expand Down