test: mirror flat unit-test trees into src feature subdirs#206
Merged
Conversation
Move test/webview/ (113 files) and test/extension/ (50 files) into subdirectories mirroring their src family dirs (decorations/, lint/, table/, session/, surface/, …) so src↔test correspondence no longer costs a search. 121 files move one level deeper; 42 cross-cutting / top-level tests stay at the tree root. Pure move + relative-import rewrites — no test logic, src, or config changes. Suite unchanged at 187 files / 3327 tests.
cd239eb to
0136fde
Compare
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
Mirror the flat unit-test trees onto their
src/feature subdirectories so src↔test correspondence no longer costs a search. Pure move —git mvplus relative-import rewrites inside the moved tests; no test logic,src/, or config changes.Changes
test/webview/(113 files): 80 tests moved intodecorations/,fenced-code/,fold/,frontmatter/,image/,inline/,lint/,list/,outline/,paste/,table/,task-checkbox/; 33 cross-cutting / top-level-cmtests stay at the tree root.helpers/untouched.test/extension/(50 files): 40 tests moved intocommands/,config/,conflict/,handoff/,image/,links/,lint/,session/,surface/; 10 top-level tests (extension.activate,package-*,types-equality,webview-*, …) stay at the root.e2e/untouched.../../src→../../../src,./helpers→../helpers,./vscode-stub→../vscode-stub), including multilineimport()/fromandvi.mock/new URLforms.includeglob and thetest/webviewtsconfigincludeare recursive;tsconfig.unit.jsonnames onlytypes-equality.test.ts, which stays at the root.Related
test/webview/+test/extension/Test Plan
pnpm compileclean (all 4 tsconfigs)pnpm test:unit— 187 files / 3327 tests, identical to the pre-move baselinepnpm test:browser— 9 files / 26 tests passpnpm lintclean on the moved dirs