I saw that the windows build was failing on FAIL __tests__/spawn.ts ● lines
I tracked this down to the echo command being used. Whilst the linux echo supports both -n and \n, windows does not. It seems the only way to create a new line with windows echo is by running to command again which doesn't really fit the test case. This solution however passes for both linux and windows and follows the lint rules.
I saw that the windows build was failing on
FAIL __tests__/spawn.ts ● lines
I tracked this down to theecho
command being used. Whilst the linuxecho
supports both-n
and\n
, windows does not. It seems the only way to create a new line with windowsecho
is by running to command again which doesn't really fit the test case. This solution however passes for both linux and windows and follows the lint rules.