()
| 33 | } |
| 34 | |
| 35 | async 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 | |
| 46 | await Promise.all([watchDir(), writeFiles()]); |
no test coverage detected