This error usually happens when the module you're trying to import is not returning the expected class or object.
Make sure that your `redis-test.ts` is exporting a **valid object or function**, not `undefined`.
Also, if you're using CommonJS modules (`require`) and trying to import them using ES Modules (`import`), there can be a mismatch.
Try changing your `redis-test.ts` file like this:
```ts
import * as redis from 'redis';
const client = redis.createClient();
client.connect();
export default client;