1export class AsyncNgrok { 2 private serverUrl: string | null = null; 3 4 getActiveUrl = jest.fn(() => this.serverUrl); 5 6 startAsync = jest.fn(async () => { 7 this.serverUrl = 'http://exp.tunnel.dev/foobar'; 8 }); 9 10 stopAsync = jest.fn(async () => { 11 this.serverUrl = null; 12 }); 13} 14