(text: string, pattern: string | RegExp)
| 50 | } |
| 51 | |
| 52 | function matchPattern(text: string, pattern: string | RegExp): boolean { |
| 53 | if (typeof pattern === "string") { |
| 54 | return text.includes(pattern); |
| 55 | } |
| 56 | return pattern.test(text); |
| 57 | } |
| 58 | |
| 59 | export const TERMINAL_STATES: Set<string> = new Set([ |
| 60 | "TASK_STATE_COMPLETED", |
no outgoing calls
no test coverage detected
searching dependent graphs…