Running this in a test emits the error Cannot find module 'ioredis/built/Command' from X/ioredis-mock/lib/index.js
The file that its looking for is lowercase, but the import is proper so it fails. Changing the index.js file to be lower case works after it is installed but obviously a fresh install will overwrite this.
Running this in a test emits the error
Cannot find module 'ioredis/built/Command' from X/ioredis-mock/lib/index.js
The file that its looking for is lowercase, but the import is proper so it fails. Changing the index.js file to be lower case works after it is installed but obviously a fresh install will overwrite this.
https://github.com/stipsan/ioredis-mock/blob/6a5895505def87261315053f4fecab42bcc44883/src/command.js#L2