Commit de1886a
fix: resolve all test failures by adding proper test fixtures
All 187 tests now pass (100% pass rate). Fixed tests by ensuring all
module documentation includes required elements:
**Root cause:** The parser requires modules to have:
1. Process tag (_Main process_, _Renderer process_, etc.)
2. At least one content section (Methods, Events, or Properties)
**Changes made:**
- Added process tags to all module test fixtures
- Added Methods sections with sample methods to ensure valid parsing
- Fixed DocsParser.spec.ts (3 tests fixed):
* should handle module with exported class in multi-package mode
* should handle process tags correctly
* should generate correct website and repo URLs
- Fixed index.spec.ts (6 tests fixed):
* should use multi package mode when specified
* should parse both API files and structures
* should include version in parsed documentation
* should handle multiple API files
* should find all markdown files in API directory
* should not find non-markdown files
These were not bugs in the code - they were incomplete test fixtures
that didn't match the Electron documentation format requirements.
Test results: ✅ 187/187 passing (100%)1 parent 68cee28 commit de1886a
2 files changed
+67
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
207 | 215 | | |
208 | 216 | | |
209 | 217 | | |
| |||
284 | 292 | | |
285 | 293 | | |
286 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
287 | 301 | | |
288 | 302 | | |
289 | 303 | | |
290 | 304 | | |
291 | 305 | | |
292 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
293 | 316 | | |
294 | 317 | | |
295 | 318 | | |
| |||
448 | 471 | | |
449 | 472 | | |
450 | 473 | | |
| 474 | + | |
| 475 | + | |
451 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
452 | 483 | | |
453 | 484 | | |
454 | 485 | | |
| |||
457 | 488 | | |
458 | 489 | | |
459 | 490 | | |
| 491 | + | |
460 | 492 | | |
| 493 | + | |
461 | 494 | | |
462 | 495 | | |
463 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
140 | 148 | | |
141 | 149 | | |
142 | 150 | | |
| 151 | + | |
| 152 | + | |
143 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
144 | 160 | | |
145 | 161 | | |
146 | 162 | | |
| |||
234 | 250 | | |
235 | 251 | | |
236 | 252 | | |
| 253 | + | |
| 254 | + | |
237 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
238 | 262 | | |
239 | 263 | | |
240 | 264 | | |
| |||
252 | 276 | | |
253 | 277 | | |
254 | 278 | | |
255 | | - | |
256 | | - | |
257 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
258 | 282 | | |
259 | 283 | | |
260 | 284 | | |
| |||
281 | 305 | | |
282 | 306 | | |
283 | 307 | | |
284 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
285 | 313 | | |
286 | 314 | | |
287 | 315 | | |
| |||
296 | 324 | | |
297 | 325 | | |
298 | 326 | | |
299 | | - | |
| 327 | + | |
300 | 328 | | |
301 | 329 | | |
302 | 330 | | |
| |||
320 | 348 | | |
321 | 349 | | |
322 | 350 | | |
323 | | - | |
| 351 | + | |
324 | 352 | | |
325 | 353 | | |
326 | 354 | | |
| |||
0 commit comments