Build an ErrnoException carrying a specific code, like a real listen() error.
(code: string)
| 64 | |
| 65 | /** Build an ErrnoException carrying a specific code, like a real listen() error. */ |
| 66 | function errno(code: string): NodeJS.ErrnoException { |
| 67 | const e = new Error(`listen ${code}`) as NodeJS.ErrnoException; |
| 68 | e.code = code; |
| 69 | return e; |
| 70 | } |
| 71 | |
| 72 | describe('getDaemonSocketCandidates (#997)', () => { |
| 73 | it.runIf(POSIX)('returns [in-project, tmpdir] for a normal short path', () => { |
no outgoing calls
no test coverage detected