Skip to content

Commit 79f4266

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 a00c39f commit 79f4266

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
@@ -265,7 +265,11 @@ function resolveTestSpecs(
265265
verifyFns.push(verifyMap[key](outputFile.outputPath, ...value));
266266
}
267267
} else if (key === "printsMessage") {
268-
verifyFns.push(verifyMap[key](value));
268+
// Support both single object and array of printsMessage checks
269+
const messages = Array.isArray(value) ? value : [value];
270+
for (const msg of messages) {
271+
verifyFns.push(verifyMap[key](msg));
272+
}
269273
} else if (key === "ensureEpubFileRegexMatches") {
270274
// this ensure function is special because it takes an array of path + regex specifiers,
271275
// so we should never use the spread operator

0 commit comments

Comments
 (0)