chore: Fix unit tests
chore: Fix unit tests

Fix unit tests and use sinon to mock the timers. This way the execution of the tests for getting port is now around 50ms instead of 15 seconds

NativeScript/nativescript-cli,NativeScript/nativescript-cli,NathanaelA/nativescript-cli,NativeScript/nativescript-cli,NathanaelA/nativescript-cli,NathanaelA/nativescript-cli,NathanaelA/nativescript-cli,NativeScript/nativescript-cli