(from: string)
| 211 | const describeCount = methods.find((n) => n.qualifiedName === 'Page::describeCount')!; |
| 212 | |
| 213 | const synthEdgesTo = (from: string) => |
| 214 | cg |
| 215 | .getOutgoingEdges(from) |
| 216 | .filter( |
| 217 | (e) => |
| 218 | e.target === build.id && |
| 219 | (e.metadata as Record<string, unknown> | undefined)?.synthesizedBy === 'arkui-state' |
| 220 | ); |
| 221 | |
| 222 | // Array mutator and plain assignment both count as state writes. |
| 223 | expect(synthEdgesTo(addTodo.id)).toHaveLength(1); |
no test coverage detected