MCPcopy Create free account
hub / github.com/sindresorhus/execa / createFileWriteStream

Function createFileWriteStream

test/stdio/node-stream-native.js:68–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66};
67
68const createFileWriteStream = async () => {
69 const filePath = tempfile();
70 const stream = createWriteStream(filePath);
71 await once(stream, 'open');
72 return {stream, filePath};
73};
74
75const assertFileStreamError = async (t, subprocess, stream, filePath) => {
76 const cause = new Error('test');

Callers 3

testFileWritableFunction · 0.85
testFileWritableErrorFunction · 0.85
testFileWritableOpenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected