()
| 65 | |
| 66 | let spawn; |
| 67 | function lazySpawn() { |
| 68 | if (spawn === undefined) { |
| 69 | try { |
| 70 | spawn = require('child_process').spawn; |
| 71 | } catch { |
| 72 | // Ignore if spawn does not exist. |
| 73 | } |
| 74 | } |
| 75 | return spawn; |
| 76 | } |
| 77 | |
| 78 | test('Does not hang forever', { skip: !lazySpawn() }, async () => { |
| 79 | const { promise, resolve } = Promise.withResolvers(); |
no test coverage detected