(journal: Journal, journalPath: string, kind: string, id: string)
| 47 | |
| 48 | /** Records a suite resource in the journal and persists it. */ |
| 49 | export async function journalResource(journal: Journal, journalPath: string, kind: string, id: string): Promise<void> { |
| 50 | journal.resources[kind] = [...new Set([...journal.resources[kind] ?? [], id])]; |
| 51 | await save(journalPath, journal); |
| 52 | } |
| 53 | |
| 54 | const sandboxName = /^[A-Za-z0-9-]+\/run-[0-9a-f-]{36}$/; |
| 55 |
no test coverage detected