fix(BaseRedisBroker): proper import path to lua script (#8776)

* fix(BaseRedisBroker): proper import path to lua script

* chore: fix tests

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
DD
2022-10-27 22:47:00 +03:00
committed by GitHub
parent 53d8e87d7f
commit e7cbc1bf11
2 changed files with 7 additions and 1 deletions

View File

@@ -2,6 +2,12 @@ import type Redis from 'ioredis';
import { test, expect, vi } from 'vitest';
import { PubSubRedisBroker } from '../src/index.js';
vi.mock('node:fs', () => {
return {
readFileSync: vi.fn(),
};
});
const mockRedisClient = {
defineCommand: vi.fn(),
xadd: vi.fn(),