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