Skip to content

How to mock/stub/change CacheModule.store option for a test app ? #681

@ruscon

Description

@ruscon

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ ] Feature request
[ x ] Documentation issue or request (new chapter/page)
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

I didn't find any documentation how to write tests for CacheModule or change store option

Expected behavior

For example, we are using CacheModule with Redis in production.
In the test app, we want to use CacheModule with memory.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


For Tooling issues:
- Node version: any  
- Platform: any 
- NestJS: 6.7.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions