(prefix: string, index?: number)
| 83 | * ``` |
| 84 | */ |
| 85 | export function createMockUuid(prefix: string, index?: number): UUID { |
| 86 | const indexStr = |
| 87 | index !== undefined ? String(index).padStart(12, '0') : '000000000000' |
| 88 | return `${prefix}-0000-0000-0000-${indexStr}` as UUID |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Sets up a spy on crypto.randomUUID with deterministic behavior. |
no outgoing calls
no test coverage detected