I am reading file size of a file using fs.statSync
on my application.
When testing, fs.statSync
returns size: 0
. And when actually running the application, it runs fine and return some size as it is supposed to.
Why could this be happening during testing?