You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note:** These are integration tests that run in a real VS Code environment with the full TypeScript/JavaScript language server. Tests use real file I/O (temp files in `os.tmpdir()`), real VS Code APIs (`workspace.openTextDocument`, `workspace.applyEdit`), and real ts-morph parsing. This makes them slower than unit tests but ensures accurate testing of the actual user experience.
19
36
20
37
- Tests run on: Ubuntu, macOS, Windows (via GitHub Actions)
The `manual-test-cases/` folder contains 10 test scenarios:
53
+
The `tests/manual/` folder contains 10 test scenarios:
37
54
38
55
#### Case 01: Basic Unused Imports (`case01-basic-unused-imports.ts`)
39
56
**Tests:** Basic unused import removal
@@ -88,7 +105,7 @@ The `manual-test-cases/` folder contains 10 test scenarios:
88
105
### Testing Workflow
89
106
90
107
1. Open Extension Development Host (F5)
91
-
2. Open a test case file from `manual-test-cases/`
108
+
2. Open a test case file from `tests/manual/`
92
109
3. Press `Ctrl+Alt+O` (or `Cmd+Alt+O`)
93
110
4. Verify:
94
111
- ✅ Unused imports are removed
@@ -168,13 +185,14 @@ mini-typescript-hero/
168
185
│ │ ├── import-organizer.ts # VSCode integration
169
186
│ │ ├── import-types.ts # Import representations
170
187
│ │ └── import-utilities.ts # Sorting/precedence
171
-
│ ├── test/ # Unit tests
172
-
│ │ ├── configuration/ # Migration tests
173
-
│ │ └── imports/ # Import logic tests
174
188
│ └── extension.ts # Extension entry point
175
-
├── manual-test-cases/ # Manual testing scenarios
176
-
│ ├── case01-*.ts # Test case files
177
-
│ └── helpers/ # Mock modules
189
+
├── tests/
190
+
│ ├── unit/ # Main extension tests
191
+
│ ├── comparison/ # Old vs new extension comparison
192
+
│ ├── manual/ # Manual testing scenarios
193
+
│ │ ├── case01-*.ts # Test case files
194
+
│ │ └── helpers/ # Mock modules
195
+
│ └── workspaces/ # Pre-configured test workspaces
178
196
├── package.json # Extension manifest
179
197
├── tsconfig.json # TypeScript config
180
198
└── esbuild.js # Build configuration
@@ -208,7 +226,7 @@ mini-typescript-hero/
208
226
### TypeScript Configuration
209
227
210
228
-**Extension runtime** (`src/`): Compiled with `strict: true`, `noUnusedLocals: true`
211
-
-**Comparison test harness** (`comparison-test-harness/`): Uses relaxed `tsconfig.json` with `strict: false` so we can compile the original TypeScript Hero code without rewriting it
229
+
-**Comparison tests** (`tests/comparison/`): Uses relaxed `tsconfig.json` with `strict: false` so we can compile the original TypeScript Hero code without rewriting it
212
230
-**Manual test cases**: Simple demonstration files, may use `any` for clarity
0 commit comments