MCPcopy Create free account
hub / github.com/nodejs/node / writeFiles

Function writeFiles

test/parallel/test-fs-promises-watch-ignore-function.mjs:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35async function writeFiles() {
36 if (common.isMacOS) {
37 // Do the write with a delay to ensure that the OS is ready to notify us.
38 // See https://github.com/nodejs/node/issues/52601.
39 await setTimeout(common.platformTimeout(100));
40 }
41
42 writeFileSync(ignoreFilePath, 'ignored');
43 writeFileSync(keepFilePath, 'content');
44}
45
46await Promise.all([watchDir(), writeFiles()]);

Calls 2

writeFileSyncFunction · 0.85
setTimeoutFunction · 0.50

Tested by

no test coverage detected