telerik / mobile-cli-lib

Contains common infrastructure for CLIs - mainly AppBuilder, NativeScript, DDB and Proton.
Apache License 2.0
11 stars 10 forks source link

Fix unit tests on Windows #1019

Closed rosen-vladimirov closed 7 years ago

rosen-vladimirov commented 7 years ago

Currently unit tests fail on Windows as the type command used in the tests is not a real executable - it is integrated in the cmd. So spawning type fails and the tests fail as well. In order to fix this, pass shell option to child process, so the child process will spawn CMD and after that type command will succeed.