Commit 45ade4e
claude: Fix argument positioning bug in test framework for keep-typ/keep-tex
Fixes a bug introduced in 49a1390, which added inputFile parameter
support for finding kept intermediate files in project contexts.
The original commit changed:
verifyFns.push(verifyMap[key](outputFile.outputPath, ...value));
to:
verifyFns.push(verifyMap[key](outputFile.outputPath, ...value, input));
This assumed value is always [matches, noMatches], but when tests only
specify matches (no noMatches array), value is [matches] and input
fills the noMatchesUntyped slot instead of inputFile, causing:
"TypeError: noMatchesUntyped?.map is not a function"
Fix by explicitly destructuring value into matches and noMatches,
then passing inputFile in the correct position.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 02f4b1d commit 45ade4e
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
285 | 288 | | |
286 | 289 | | |
287 | 290 | | |
| |||
0 commit comments