| 13 | * This class allows spying on host methods and controlling their return values. |
| 14 | */ |
| 15 | export class MockHost implements Host { |
| 16 | executeNgCommand = jasmine.createSpy('executeNgCommand').and.resolveTo({ logs: [] }); |
| 17 | stat = jasmine.createSpy('stat'); |
| 18 | existsSync = jasmine.createSpy('existsSync'); |
| 19 | readFile = jasmine.createSpy('readFile').and.resolveTo(''); |
| 20 | glob = jasmine.createSpy('glob').and.returnValue((async function* () {})()); |
| 21 | startNgProcess = jasmine.createSpy('startNgProcess'); |
| 22 | getAvailablePort = jasmine.createSpy('getAvailablePort'); |
| 23 | isPortAvailable = jasmine.createSpy('isPortAvailable').and.resolveTo(true); |
| 24 | setRoots = jasmine.createSpy('setRoots'); |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected