()
| 6 | const UUID_V4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/; |
| 7 | |
| 8 | function withoutRandomUUID(): void { |
| 9 | Object.defineProperty(crypto, 'randomUUID', { value: undefined, configurable: true }); |
| 10 | } |
| 11 | afterEach(() => { |
| 12 | Reflect.deleteProperty(crypto, 'randomUUID'); |
| 13 | }); |