skip to Main Content

Testing Redis functionalities with Jest

I have the following file that connect to a redis database: index.js const redis = require('redis'); const logger = require('../logger'); const config = require('../env'); const client = redis.createClient({ host: config.redis.host, port: config.redis.port }); const connect = () => { client.on('connect',…

VIEW QUESTION
Back To Top
Search