Skip to content

Commit 7d92ac6

Browse files
committed
fix: remove unused imports left behind by test pruning
1 parent aba6b3a commit 7d92ac6

24 files changed

Lines changed: 6 additions & 128 deletions

src/__tests__/command-codecs.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { test } from 'vitest';
22
import assert from 'node:assert/strict';
3-
import { DAEMON_COMMAND_GROUPS, PUBLIC_COMMANDS } from '../command-catalog.ts';
43
import {
54
fillCommandCodec,
65
findCommandCodec,

src/__tests__/runtime-public.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import assert from 'node:assert/strict';
22
import fs from 'node:fs';
33
import os from 'node:os';
44
import path from 'node:path';
5-
import { PNG } from 'pngjs';
65
import { test } from 'vitest';
76
import {
87
createAgentDevice,

src/commands/__tests__/capture-screenshot-options.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import {
66
SCREENSHOT_COMMAND_FLAG_KEYS,
77
SCREENSHOT_SPECIFIC_FLAG_DEFINITIONS,
88
readScreenshotScriptFlag,
9-
screenshotFlagsFromOptions,
10-
screenshotOptionsFromFlags,
119
} from '../capture-screenshot-options.ts';
1210

1311
test('screenshot script flags use the shared recorded flag contract', () => {

src/core/__tests__/capabilities.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ const androidDevice: DeviceInfo = {
2424
kind: 'device',
2525
};
2626

27-
const androidTvDevice: DeviceInfo = {
28-
platform: 'android',
29-
id: 'and-tv-1',
30-
name: 'Android TV',
31-
kind: 'device',
32-
target: 'tv',
33-
};
34-
3527
const macOsDevice: DeviceInfo = {
3628
platform: 'macos',
3729
id: 'mac-1',

src/core/__tests__/dispatch-interactions.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
import { test, vi } from 'vitest';
22
import assert from 'node:assert/strict';
33
import {
4-
handleFlingCommand,
5-
handlePanCommand,
6-
handlePinchCommand,
7-
handlePressCommand,
84
handleRotateGestureCommand,
95
handleTransformGestureCommand,
106
} from '../dispatch-interactions.ts';
117
import type { Interactor } from '../interactor-types.ts';
128
import {
139
ANDROID_EMULATOR,
1410
IOS_SIMULATOR,
15-
MACOS_DEVICE,
1611
} from '../../__tests__/test-utils/device-fixtures.ts';
1712

1813
vi.mock('../../platforms/ios/macos-helper.ts', async (importOriginal) => {
@@ -23,8 +18,6 @@ vi.mock('../../platforms/ios/macos-helper.ts', async (importOriginal) => {
2318
};
2419
});
2520

26-
import { runMacOsPressAction } from '../../platforms/ios/macos-helper.ts';
27-
2821
function makeUnusedInteractor(): Interactor {
2922
const fail = async () => {
3023
throw new Error('interactor should not be used for macOS menubar press');

src/core/__tests__/dispatch-series.test.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
import { test, vi } from 'vitest';
1+
import { test } from 'vitest';
22
import assert from 'node:assert/strict';
33
import {
44
requireIntInRange,
55
clampIosSwipeDuration,
66
shouldUseIosTapSeries,
77
shouldUseIosDragSeries,
8-
computeDeterministicJitter,
9-
runRepeatedSeries,
108
} from '../dispatch-series.ts';
119
import { AppError } from '../../utils/errors.ts';
1210
import type { DeviceInfo } from '../../utils/device.ts';
1311

1412
const iosDevice: DeviceInfo = { platform: 'ios', id: 'test', name: 'iPhone', kind: 'simulator' };
15-
const androidDevice: DeviceInfo = {
16-
platform: 'android',
17-
id: 'test',
18-
name: 'Pixel',
19-
kind: 'emulator',
20-
};
21-
2213
// --- requireIntInRange ---
2314

2415
test('requireIntInRange throws for value below minimum', () => {

src/daemon/__tests__/app-log.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ import os from 'node:os';
55
import path from 'node:path';
66
import {
77
APP_LOG_PID_FILENAME,
8-
appendAppLogMarker,
98
assertAndroidPackageArgSafe,
109
buildAppleLogPredicate,
1110
buildIosDeviceLogStreamArgs,
1211
buildIosSimulatorLogStreamArgs,
13-
clearAppLogFiles,
1412
cleanupStaleAppLogProcesses,
15-
getAppLogPathMetadata,
1613
runAppLogDoctor,
1714
rotateAppLogIfNeeded,
18-
stopAppLog,
1915
} from '../app-log.ts';
2016

2117
test('buildAppleLogPredicate includes bundle-aware filters', () => {

src/daemon/__tests__/is-predicates.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from 'vitest';
22
import assert from 'node:assert/strict';
3-
import { evaluateIsPredicate, isSupportedPredicate } from '../is-predicates.ts';
3+
import { evaluateIsPredicate } from '../is-predicates.ts';
44

55
const viewportNode = {
66
ref: 'e1',

src/daemon/__tests__/request-lock-policy.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,3 @@ test('strips only conflicting selectors for existing sessions', () => {
292292
assert.equal(req.flags?.serial, undefined);
293293
});
294294

295-
function selectedFlags(req: ReturnType<typeof applyRequestLockPolicy>): {
296-
platform: string | undefined;
297-
device: string | undefined;
298-
serial: string | undefined;
299-
} {
300-
return {
301-
platform: req.flags?.platform,
302-
device: req.flags?.device,
303-
serial: req.flags?.serial,
304-
};
305-
}

src/daemon/__tests__/request-platform-providers.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import {
99
import { withTargetDeviceResolutionScope } from '../../core/dispatch-resolve.ts';
1010
import { createLocalAppleToolProvider, runXcrun } from '../../platforms/ios/tool-provider.ts';
1111
import type { DeviceInfo } from '../../utils/device.ts';
12-
import { startAppLog } from '../app-log.ts';
13-
import { resolveRecordingProvider } from '../recording-provider.ts';
1412
import { withRequestPlatformProviderScope } from '../request-platform-providers.ts';
1513
import type { DaemonRequest } from '../types.ts';
1614

0 commit comments

Comments
 (0)