Helper: create a minimal test item with an identifiable text field.
(text: string, type = "say")
| 8 | |
| 9 | /** Helper: create a minimal test item with an identifiable text field. */ |
| 10 | function msg(text: string, type = "say"): TestItem { |
| 11 | return { ts: Date.now(), type, text } |
| 12 | } |
| 13 | |
| 14 | /** Predicate: matches items whose text starts with "match". */ |
| 15 | const isMatch = (m: TestItem) => !!m.text?.startsWith("match") |
no outgoing calls
no test coverage detected