Skip to content

Commit

Permalink
Fix tests when path location of yarn contains spaces (#2700)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keraito authored and bestander committed Feb 19, 2017
1 parent 9750510 commit 9a9a8ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Promise<Array<?string>> {
}

return new Promise((resolve, reject) => {
exec(`node ${yarnBin} ${cmd} ${args.join(' ')}`, {cwd:workingDir, env:process.env}, (err, stdout) => {
exec(`node "${yarnBin}" ${cmd} ${args.join(' ')}`, {cwd:workingDir, env:process.env}, (err, stdout) => {
if (err) {
reject(err);
} else {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/lifecycle-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function execCommand(cmd: string, packageName: string, env = process.env):

return new Promise((resolve, reject) => {

exec(`node ${yarnBin} ${cmd}`, {cwd:packageDir, env}, (err, stdout) => {
exec(`node "${yarnBin}" ${cmd}`, {cwd:packageDir, env}, (err, stdout) => {
if (err) {
reject(err);
} else {
Expand Down

0 comments on commit 9a9a8ba

Please sign in to comment.