There was an error while loading. Please reload this page.
1 parent 4aeb851 commit 7b01c1dCopy full SHA for 7b01c1d
1 file changed
test.js
@@ -130,7 +130,10 @@ const { test } = require('node:test');
130
setTimeout(() => {
131
fs.writeFileSync(scratch.watchTarget, 'watch-start');
132
133
- fs.renameSync(scratch.watchDir, scratch.watchDir + '_moved');
+ fs.appendFileSync(scratch.watchTarget, '-updated');
134
+ setTimeout(() => {
135
+ fs.renameSync(scratch.watchDir, scratch.watchDir + '_moved');
136
+ }, 200);
137
}, 200);
138
}, 100);
139
} else if (event === 'ADDED' && message === 'watch.txt') {
0 commit comments