11import type { SessionState } from '../../daemon/types.ts' ;
22import { IOS_SIMULATOR , ANDROID_EMULATOR , MACOS_DEVICE } from './device-fixtures.ts' ;
33
4- export function makeSession (
5- name : string ,
6- overrides ?: Partial < SessionState > ,
7- ) : SessionState {
4+ export function makeSession ( name : string , overrides ?: Partial < SessionState > ) : SessionState {
85 return {
96 name,
107 device : IOS_SIMULATOR ,
@@ -14,23 +11,14 @@ export function makeSession(
1411 } ;
1512}
1613
17- export function makeIosSession (
18- name : string ,
19- overrides ?: Partial < SessionState > ,
20- ) : SessionState {
14+ export function makeIosSession ( name : string , overrides ?: Partial < SessionState > ) : SessionState {
2115 return makeSession ( name , { device : IOS_SIMULATOR , ...overrides } ) ;
2216}
2317
24- export function makeAndroidSession (
25- name : string ,
26- overrides ?: Partial < SessionState > ,
27- ) : SessionState {
18+ export function makeAndroidSession ( name : string , overrides ?: Partial < SessionState > ) : SessionState {
2819 return makeSession ( name , { device : ANDROID_EMULATOR , ...overrides } ) ;
2920}
3021
31- export function makeMacOsSession (
32- name : string ,
33- overrides ?: Partial < SessionState > ,
34- ) : SessionState {
22+ export function makeMacOsSession ( name : string , overrides ?: Partial < SessionState > ) : SessionState {
3523 return makeSession ( name , { device : MACOS_DEVICE , ...overrides } ) ;
3624}
0 commit comments