You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to test my REST API with jest, using Fastify, Bull and Node-Cache.
I have some separated test files, and in previous file using cache is ok, but when I try to use it again I stuck some strange situation that value in array is expired, I try to debug this, log cache instance and link to array and get true when compare them. I import cache instance in test file and see this value all the time, but in my another module it doesn't appear at all. If I move this test to previous file it works how I expect. Try to flush and close cache but not helped.
Hello!
I try to test my REST API with jest, using Fastify, Bull and Node-Cache.
I have some separated test files, and in previous file using cache is ok, but when I try to use it again I stuck some strange situation that value in array is expired, I try to debug this, log cache instance and link to array and get true when compare them. I import cache instance in test file and see this value all the time, but in my another module it doesn't appear at all. If I move this test to previous file it works how I expect. Try to flush and close cache but not helped.
Can someone help? Any ideas?
Code:
cache.js
controller.js
service.js
test.js
The text was updated successfully, but these errors were encountered: