Repository navigation
refactor(test): colocate sdk, remote and metro tests with their modules - #3646
Merged
Merged
Conversation
… (pure git mv) Specifier fixes follow in the next commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…neighbours Specifier-only edits; the one other change is the mutation-lane exclusion path in vitest.config.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Size Report
Startup median (7 runs, lower is better):
|
Member
Author
|
The code in 9221fd0 looks good to me. It moves the sdk, remote and metro tests next to their modules, and I found no broken relative imports or problems with the mutation-exclusion path in the vitest path string. The Repo Guards, Typecheck, Coverage and Integration jobs were still queued when I checked, so CI has not confirmed this yet. I did not run the moved tests or the typecheck, and I did not check whether the Coverage project now picks up the src/sdk test files. Coverage already excludes src/sdk/**, but that is a source-coverage exclude. There are no conflicts. Once the queued jobs pass, this is ready to merge. |
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First slice of the root test-colocation burn-down (class r, root code in the wrong place): 12 tests move from
src/__tests__(andsrc/commands/batch) beside the module they test.android-adb-public,contracts-schema-public,metro-publicsrc/sdk/commands/batch/publicsrc/sdk/batch-public.test.tsremote-config-public,upload-client,upload-client-cancellationsrc/remote/__tests__/client-metro,client-metro-auto-companion,client-metro-companion,client-metro-startup-cleanup,metro-session-hintssrc/metro/Commit 1 is a pure
git mv(0 content lines). Commit 2 is relative-specifier edits plus the mutation-exclusion path invitest.config.ts(git diff -Msimilarity 90–99%). Noexportschange anywhere (rootexports13 → 13, no package touched), no barrels, no new fixtures. Seeds no colocation baseline yet (rule not on main).Validation
Head
9221fd0a6.check:quick,check:layering,check:fallow,check:gate-manifest,pnpm formatpass.vitest run <files> --reporter=json): android-adb-public 1, contracts-schema-public 7, metro-public 2, batch-public 5, remote-config-public 1, upload-client 18, upload-client-cancellation 3, client-metro 20, -auto-companion 6, -companion 12, -startup-cleanup 6, metro-session-hints 7.unit-core(src/**/*.test.ts);vitest listshows the new paths.vi.mockeffectiveness (broken once, failed, reverted):client-metro-auto-companion./client-metro-companion.ts→ real module: 6/6 fail;client-metro-companionhost-kit/commandwithoutrunCmdDetached: 8 fail;client-metro-startup-cleanupsame: 6/6 fail.check:affected --run: 1 failure,eager-closure-budgets › no APPROVED_OVER_CEILING row is stalenamespackages/daemon/src/index.ts(row added by refactor(daemon): add the single package entry and resolve its metadata consumers #3633). Not from this diff: it passes onorigin/mainonly because the check is deferred when merge-base == head, so any branch off main fails it. For the daemon thread to drop that row.🤖 Generated with Claude Code