Skip to content

Commit

Permalink
skip test in __tests__/index.js for win32 platform: it does some tric…
Browse files Browse the repository at this point in the history
…ks in bash, it does not work with powershell (#2748)
  • Loading branch information
voxsim authored and bestander committed Feb 22, 2017
1 parent 3c459de commit 5b968dd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ test.concurrent('should run help of run command if --help is before --', async (
.toEqual('Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.');
});

test.concurrent('should run help of custom-script if --help is after --', async () => {
const stdout = await execCommand('run', ['custom-script', '--', '--help'], 'run-custom-script-with-arguments');
expect(stdout[stdout.length - 2]).toEqual('A message from custom script with args --help');
});
if (process.platform !== 'win32') {
test.concurrent('should run help of custom-script if --help is after --', async () => {
const stdout = await execCommand('run', ['custom-script', '--', '--help'], 'run-custom-script-with-arguments');
expect(stdout[stdout.length - 2]).toEqual('A message from custom script with args --help');
});
}

0 comments on commit 5b968dd

Please sign in to comment.