()
| 58 | test('stdio[*] cannot be a Node.js Duplex without a file descriptor', testNoFileStream, 3, noopDuplex()); |
| 59 | |
| 60 | const createFileReadStream = async () => { |
| 61 | const filePath = tempfile(); |
| 62 | await writeFile(filePath, 'foobar'); |
| 63 | const stream = createReadStream(filePath); |
| 64 | await once(stream, 'open'); |
| 65 | return {stream, filePath}; |
| 66 | }; |
| 67 | |
| 68 | const createFileWriteStream = async () => { |
| 69 | const filePath = tempfile(); |
no outgoing calls
no test coverage detected