Home
last modified time | relevance | path

Searched refs:resolveHostType (Results 1 – 2 of 2) sorted by relevance

/expo/packages/@expo/cli/src/start/__tests__/
H A DresolveOptions-test.ts4 import { resolveHostType, resolveOptionsAsync, resolvePortsAsync } from '../resolveOptions';
58 describe(resolveHostType, () => {
60 expect(resolveHostType({})).toBe('lan');
63 expect(resolveHostType({ lan: true })).toBe('lan');
64 expect(resolveHostType({ localhost: true })).toBe('localhost');
65 expect(resolveHostType({ tunnel: true })).toBe('tunnel');
66 expect(resolveHostType({ offline: true })).toBe('lan');
67 expect(resolveHostType({ host: 'tunnel' })).toBe('tunnel');
69 expect(resolveHostType({})).toBe('lan');
72 expect(() => resolveHostType({ host: 'bacon' })).toThrow();
[all …]
/expo/packages/@expo/cli/src/start/
H A DresolveOptions.ts29 const host = resolveHostType({
110 export function resolveHostType(options: { function