From c53e8248cbc755e3bcd1963dda27a470a6adc42a Mon Sep 17 00:00:00 2001 From: Simon Vocella Date: Tue, 21 Feb 2017 23:05:09 +0100 Subject: [PATCH] skip test in __tests__/index.js for win32 platform: it does some tricks in bash, it does not work with powershell --- __tests__/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/__tests__/index.js b/__tests__/index.js index 51f97ca9cd..ebbaa5d8e1 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -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'); + }); +}