gajus / turbowatch

Extremely fast file change detector and task orchestrator for Node.js.
Other
938 stars 23 forks source link

Add test to ensure that we don't log every detected file change #17

Closed gajus closed 1 year ago

gajus commented 1 year ago

Consider we did:

#!/bin/bash
for i in {1..10000}
do
   touch index.ts
done

If we were to log every time a file change is detected, this would flood the stdout. Ironically, this exact same thing happened while benchmarking against an alternative framework, and it (+whatever else they do) caused the computer to crash.

We are already not doing this, but just need to add a test to ensure that we don't regress in future.