Skip to content

Commit 5807622

Browse files
committed
refactor: trim apple runner provider surface
1 parent 08aef44 commit 5807622

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

src/platforms/ios/__tests__/runner-provider.test.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import assert from 'node:assert/strict';
22
import { test } from 'vitest';
33
import { IOS_SIMULATOR } from '../../../__tests__/test-utils/index.ts';
44
import {
5-
hasScopedAppleRunnerProvider,
65
resolveAppleRunnerProvider,
76
withAppleRunnerProvider,
87
type AppleRunnerProvider,
@@ -47,24 +46,6 @@ test('scoped Apple runner provider requires matching request id when scoped by r
4746
assert.deepEqual(calls, ['scoped', 'fallback', 'fallback']);
4847
});
4948

50-
test('scoped Apple runner provider detection follows request scoping', async () => {
51-
const scoped = runnerProvider('scoped', []);
52-
53-
await withAppleRunnerProvider(
54-
scoped,
55-
{ deviceId: IOS_SIMULATOR.id, requestId: 'req-1' },
56-
async () => {
57-
assert.equal(hasScopedAppleRunnerProvider(IOS_SIMULATOR, { requestId: 'req-1' }), true);
58-
assert.equal(hasScopedAppleRunnerProvider(IOS_SIMULATOR), false);
59-
assert.equal(hasScopedAppleRunnerProvider(IOS_SIMULATOR, { requestId: 'req-2' }), false);
60-
assert.equal(
61-
hasScopedAppleRunnerProvider({ ...IOS_SIMULATOR, id: 'other-sim' }, { requestId: 'req-1' }),
62-
false,
63-
);
64-
},
65-
);
66-
});
67-
6849
function runnerProvider(source: string, calls: string[]): AppleRunnerProvider {
6950
return {
7051
runCommand: async () => {

src/platforms/ios/runner-provider.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ export function resolveAppleRunnerProvider(
101101
: normalizeAppleRunnerProvider(fallback);
102102
}
103103

104-
export function hasScopedAppleRunnerProvider(
105-
device: DeviceInfo,
106-
options: { requestId?: string } = {},
107-
): boolean {
108-
return resolveScopedAppleRunnerProvider(device, options) !== undefined;
109-
}
110-
111104
function resolveScopedAppleRunnerProvider(
112105
device: DeviceInfo,
113106
options: { requestId?: string } = {},

0 commit comments

Comments
 (0)