()
| 19 | const ignoreFilePath = path.join(testDir, ignoreFile); |
| 20 | |
| 21 | async function watchDir() { |
| 22 | const watcher = watch(testDir, { |
| 23 | ignore: (filename) => filename.startsWith('.'), |
| 24 | }); |
| 25 | |
| 26 | for await (const { filename } of watcher) { |
| 27 | assert.notStrictEqual(filename, ignoreFile); |
| 28 | |
| 29 | if (filename === keepFile) { |
| 30 | break; |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | async function writeFiles() { |
| 36 | if (common.isMacOS) { |
no test coverage detected