Home
last modified time | relevance | path

Searched refs:constructUrl (Results 1 – 6 of 6) sorted by relevance

/expo/packages/@expo/cli/src/start/server/__tests__/
H A DUrlCreator-test.ts82 expect(createDefaultCreator().constructUrl({})).toMatchInlineSnapshot(`"http://expo.dev"`);
86 expect(createDefaultCreator().constructUrl({})).toMatchInlineSnapshot(
91 expect(createDefaultCreator().constructUrl({ scheme: 'exp' })).toMatchInlineSnapshot(
96 expect(createDefaultCreator().constructUrl({ hostType: 'localhost' })).toMatchInlineSnapshot(
101 expect(createDefaultCreator().constructUrl({ hostType: 'lan' })).toMatchInlineSnapshot(
106 expect(createDefaultCreator().constructUrl({ hostType: 'tunnel' })).toMatchInlineSnapshot(
112 new UrlCreator({ scheme: 'foobar' }, { port: 8081 }).constructUrl({})
117 new UrlCreator({ scheme: 'foobar' }, { port: 8081 }).constructUrl({ scheme: 'newer' })
123 new UrlCreator({}, { port: 8081, getTunnelUrl: () => null }).constructUrl({
131 expect(createDefaultCreator().constructUrl({ hostname: 'localhost' })).toMatchInlineSnapshot(
[all …]
/expo/packages/@expo/cli/src/start/server/middleware/__tests__/
H A DManifestMiddleware-test.ts75 constructUrl: createConstructUrl(),
112 constructUrl: createConstructUrl(),
142 const constructUrl = createConstructUrl(); constant
155 const constructUrl = createConstructUrl(); constant
157 constructUrl,
180 const constructUrl = createConstructUrl(); constant
182 constructUrl,
202 constructUrl: jest.fn(() => 'http://fake.mock'),
233 constructUrl: jest.fn(() => 'http://fake.mock'),
266 constructUrl: jest.fn(() => 'http://fake.mock'),
[all …]
/expo/packages/@expo/cli/src/start/server/
H A DBundlerDevServer.ts127 constructUrl: urlCreator.constructUrl.bind(urlCreator),
353 : this.getUrlCreator().constructUrl({ ...opts, scheme: 'exp' });
377 return this.getUrlCreator().constructUrl({ scheme: 'http' });
422 return this.getUrlCreator().constructUrl({ scheme: 'exp' });
454 this.getUrlCreator().constructUrl({ scheme: 'http' })
H A DUrlCreator.ts40 const url = new URL('_expo/loading', this.constructUrl({ scheme: 'http', ...options }));
63 const manifestUrl = this.constructUrl({ ...options, scheme: 'http' });
72 public constructUrl(options?: Partial<CreateURLOptions> | null): string { method in UrlCreator
/expo/packages/@expo/cli/src/start/server/middleware/
H A DManifestMiddleware.ts158 constructUrl: UrlCreator['constructUrl'];
200 const hostUri = this.options.constructUrl({ scheme: '', hostname });
270 this.options.constructUrl({
321 debuggerHost: this.options.constructUrl({ scheme: '', hostname }),
/expo/packages/@expo/cli/src/start/server/metro/
H A DMetroBundlerDevServer.ts390 return this.urlCreator?.constructUrl({