The scenario I am trying to test: I want to ensure a file is not cached, and as a result a process, which typically takes >10s, executes and completes.
I want to fail a mocha test if it takes any shorter than 10 seconds to complete. I've checked out the docs and other questions here on stackoverflow..how can I do this?
Thanks!
edit: This testing pattern may not be ideal - I was mostly just curious to what would come up for this specific question.