Skip to content

Commit 999c07e

Browse files
claude: Support array of printsMessage checks in smoke tests
Allows testing for both presence AND absence of specific messages in a single test by passing an array to printsMessage. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 08b420a commit 999c07e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/smoke/smoke-all.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,11 @@ function resolveTestSpecs(
277277
verifyFns.push(verifyMap[key](outputFile.outputPath, ...value));
278278
}
279279
} else if (key === "printsMessage") {
280-
verifyFns.push(verifyMap[key](value));
280+
// Support both single object and array of printsMessage checks
281+
const messages = Array.isArray(value) ? value : [value];
282+
for (const msg of messages) {
283+
verifyFns.push(verifyMap[key](msg));
284+
}
281285
} else if (key === "ensureEpubFileRegexMatches") {
282286
// this ensure function is special because it takes an array of path + regex specifiers,
283287
// so we should never use the spread operator

0 commit comments

Comments
 (0)