Commit a61d798
committed
fix: resolve test failures and improve default behavior
Test fixes:
- Fix directory-paths test by changing default pattern to bench/**/*
- Fix init-command tests by restoring .gitignore creation/update functionality
- Fix symlink-install test by correcting ExitCodes constant references
- Update file-loader unit test to match new default pattern behavior
Default pattern improvements:
- Change default pattern from **/* to bench/**/* (recursive)
- Only search bench/ directory by default, not top-level files
- Update DEFAULT_CONFIG in config-manager to use bench/**/* pattern
- File-loader now uses bench/**/* when given empty pattern array
ExitCodes consolidation:
- Remove duplicate ExitCodes definition from cli/index.ts
- Import ExitCodes from types/cli.ts for consistency
- Fix incorrect constant references (RUNTIME_ERROR -> ExecutionError, etc.)
- Ensure all exit codes use camelCase naming convention
.gitignore functionality:
- Restore appendFile and readFile imports to init command
- Add createOrUpdateGitignore function to manage .gitignore files
- Create new .gitignore with modestbench entries when initializing
- Append .modestbench/ to existing .gitignore files (with --yes or --quiet)
- Avoid duplicate entries if .modestbench/ already exists
All tests now passing (812 pass, 0 fail, 5 skipped).1 parent b8f2155 commit a61d798
File tree
5 files changed
+92
-31
lines changed- src
- cli
- commands
- services
- test/unit/services
5 files changed
+92
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
297 | 303 | | |
298 | 304 | | |
299 | 305 | | |
300 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
301 | 310 | | |
302 | 311 | | |
303 | 312 | | |
| |||
358 | 367 | | |
359 | 368 | | |
360 | 369 | | |
361 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
362 | 374 | | |
363 | 375 | | |
364 | 376 | | |
| |||
397 | 409 | | |
398 | 410 | | |
399 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
400 | 474 | | |
401 | 475 | | |
402 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 86 | | |
99 | 87 | | |
100 | 88 | | |
| |||
103 | 91 | | |
104 | 92 | | |
105 | 93 | | |
106 | | - | |
| 94 | + | |
107 | 95 | | |
108 | 96 | | |
109 | 97 | | |
| |||
950 | 938 | | |
951 | 939 | | |
952 | 940 | | |
953 | | - | |
| 941 | + | |
954 | 942 | | |
955 | | - | |
| 943 | + | |
956 | 944 | | |
957 | 945 | | |
958 | 946 | | |
959 | 947 | | |
960 | 948 | | |
961 | | - | |
| 949 | + | |
962 | 950 | | |
963 | 951 | | |
964 | 952 | | |
| |||
970 | 958 | | |
971 | 959 | | |
972 | 960 | | |
973 | | - | |
| 961 | + | |
974 | 962 | | |
975 | 963 | | |
976 | 964 | | |
| |||
1036 | 1024 | | |
1037 | 1025 | | |
1038 | 1026 | | |
1039 | | - | |
| 1027 | + | |
1040 | 1028 | | |
1041 | 1029 | | |
1042 | 1030 | | |
| |||
1077 | 1065 | | |
1078 | 1066 | | |
1079 | 1067 | | |
1080 | | - | |
| 1068 | + | |
1081 | 1069 | | |
1082 | 1070 | | |
1083 | 1071 | | |
| |||
1089 | 1077 | | |
1090 | 1078 | | |
1091 | 1079 | | |
1092 | | - | |
| 1080 | + | |
1093 | 1081 | | |
1094 | 1082 | | |
1095 | 1083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments