From 5b968dd53222a6bad18acbe4fee5ad482be2014a Mon Sep 17 00:00:00 2001 From: Simon Vocella Date: Wed, 22 Feb 2017 10:44:18 +0100 Subject: [PATCH] skip test in __tests__/index.js for win32 platform: it does some tricks in bash, it does not work with powershell (#2748) --- __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'); + }); +}