MCPcopy Index your code
hub / github.com/angular/angular-cli / MockHost

Class MockHost

packages/angular/cli/src/commands/mcp/testing/mock-host.ts:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 * This class allows spying on host methods and controlling their return values.
14 */
15export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected