
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
redis-eval-mock
Advanced tools
Provides a mock of the EVAL functionality in Redis using lua.vm.js in order
to test Lua scripts. It is intended to be used along with an existing mock of
the redis library, and calls back into it for Redis calls executed from Lua.
In addition, it provides mocks of the cjson and cmsgpack libraries provided
by default to Lua by Redis.
Replaces the implementations of eval and evalsha in client with functional
mocks. Returns the client. The implementation does not currently include a mock
script cache, so evalsha will always throw a NOSCRIPT error.
import * as redis from 'redis';
import * as mock from 'redis-mock';
import mockEval from 'redis-eval-mock';
jest.spyOn(redis, 'createClient').mockImplementation(() =>
mockEval(mock.createClient())
);
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
FAQs
A mock version of Redis EVAL to test Lua scripts
We found that redis-eval-mock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.