8000 ci: running some test cases with a local registry to better reflect real-world use cases by haoqunjiang · Pull Request #4193 · vuejs/vue-cli · GitHub
[go: up one dir, main page]

Skip to content

ci: running some test cases with a local registry to better reflect real-world use cases #4193

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

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: ignore package manager output in test environments
  • Loading branch information
haoqunjiang committed Jun 27, 2019
commit 9df1c4966043d7a2866671ea05abc497477d8db1
7 changes: 6 additions & 1 deletion packages/@vue/cli/lib/util/installDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,14 @@ function executeCommand (command, args, targetDir) {
}
}

const stdio = ['inherit', apiMode ? 'pipe' : 'inherit', !apiMode && command === 'yarn' ? 'pipe' : 'inherit']
if (process.env.VUE_CLI_TEST) {
stdio[0] = stdio[1] = 'ignore'
}

const child = execa(command, args, {
cwd: targetDir,
stdio: ['inherit', apiMode ? 'pipe' : 'inherit', !apiMode && command === 'yarn' ? 'pipe' : 'inherit']
stdio
})

if (apiMode) {
Expand Down
0