watcher icon indicating copy to clipboard operation
watcher copied to clipboard

writeSnapshot promise resolves before file is written

Open aleclarson opened this issue 4 years ago • 0 comments

  • macOS 10.15.7
  • Watchman installed
  • Default backend

I noticed this while writing tests that awaited a writeSnapshot call before reading the snapshot with getEventsSince.

Currently, I wait 100ms after the promise resolves before calling getEventsSince.

aleclarson avatar Mar 16 '21 01:03 aleclarson