(file, content = readFileSync(file))
| 17 | const supportsRecursive = common.isMacOS || common.isWindows; |
| 18 | |
| 19 | function restart(file, content = readFileSync(file)) { |
| 20 | // To avoid flakiness, we save the file repeatedly until test is done |
| 21 | writeFileSync(file, content); |
| 22 | const timer = setInterval(() => writeFileSync(file, content), common.platformTimeout(2500)); |
| 23 | return () => clearInterval(timer); |
| 24 | } |
| 25 | |
| 26 | function changeDetected(file) { |
| 27 | return `Change detected in ${inspect(file)}`; |
no test coverage detected