MCPcopy Index your code
hub / github.com/nodejs/node / run

Method run

test/parallel/test-fs-promises-watch-iterator.js:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 filePath(fileName) { return join(this.dirPath, fileName); }
24
25 async run() {
26 await Promise.all([this.watchFiles(), this.writeFiles()]);
27 // eslint-disable-next-line node-core/must-call-assert
28 assert(!this.files.length);
29 }
30 async watchFiles() {
31 const watcher = watch(this.dirPath);
32 for await (const evt of watcher) {

Calls 4

watchFilesMethod · 0.95
writeFilesMethod · 0.95
allMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected