node-cache
node-cache copied to clipboard
Npm test stuck if cache is used with TTL
My unit tests are stuck after they are executed unless the library TTL expires for a particular operation
Seems like there is an internal timer running to check the timeout. A simple workaround is, to call
require("memory-cache").clear()
at the end of your test.