Skip to content

test: relocate the 2 deferred Apple runner/recording tests (closes #980)#988

Merged
thymikee merged 1 commit into
mainfrom
phase3-cleanup-tests-finish
Jul 1, 2026
Merged

test: relocate the 2 deferred Apple runner/recording tests (closes #980)#988
thymikee merged 1 commit into
mainfrom
phase3-cleanup-tests-finish

Conversation

@thymikee

@thymikee thymikee commented Jul 1, 2026

Copy link
Copy Markdown
Member

Summary

Completes cleanup issue #980 (follow-up to #983). #983 relocated 19/21 Apple-engine unit tests; the 2 deferred here compute runtime fs paths (fileURLToPath/__dirname), so they needed path-depth fixes in addition to import re-relativization.

  • runner-client.test.tssrc/platforms/apple/core/__tests__/ (joins the other Apple engine tests); repoRoot recomputed one level deeper (../../../../../../../../../), vi.mock/vi.importActual/imports re-relativized.
  • recording-scripts.test.tssrc/recording/__tests__/ (beside the overlay.ts it tests); the ios-runner/…/RecordingScripts + test/integration/support __dirname-relative paths recomputed one level shallower.

src/platforms/ios/__tests__/ is now empty — every Apple-engine test sits beside its source under apple/core/ (and src/recording/ for the recording-overlay test).

Verification

Pure test relocation — no source/behavior change. Local: tsc, oxlint --deny-warnings, oxfmt --check, the layering guard, and fallow audit all clean; full unit suite passes (2883). The moved suites pass (64 tests) including the runtime-path assertions.

Closes #980.

Completes the #983 relocation. The 2 files deferred there compute runtime fs
paths (fileURLToPath/__dirname), so they needed path-depth fixes on top of import
re-relativization:

- runner-client.test.ts -> src/platforms/apple/core/__tests__/ (joins the rest of
  the Apple engine tests); repoRoot recomputed one level deeper.
- recording-scripts.test.ts -> src/recording/__tests__/ (beside the overlay.ts it
  tests); ios-runner RecordingScripts + test/integration/support paths recomputed
  one level shallower.

src/platforms/ios/__tests__/ is now empty (all Apple-engine tests live beside
their source under apple/core and recording). Pure test relocation — tsc, oxlint,
oxfmt, layering guard, fallow green; full unit suite passes (2883).
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.4 MB 1.4 MB 0 B
JS gzip 451.9 kB 451.9 kB 0 B
npm tarball 549.9 kB 549.9 kB 0 B
npm unpacked 1.9 MB 1.9 MB 0 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 27.5 ms 28.0 ms +0.5 ms
CLI --help 51.0 ms 48.9 ms -2.1 ms

Top changed chunks: no changes in the largest emitted chunks.

@thymikee thymikee merged commit 1d1cf0e into main Jul 1, 2026
21 checks passed
@thymikee thymikee deleted the phase3-cleanup-tests-finish branch July 1, 2026 09:35
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-01 09:35 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleanup: relocate Apple unit tests out of src/platforms/ios/__tests__

1 participant