Skip to content
Advertisement

Tag: node-config

mock node config with jest

I introduce myself currently for the first time in jest and nodejs. I am facing the problem that I have to mock two different values from the nodejs config. the problem is that the second mockReturnValue overwrites the first one. is there any possibility to separate booth mocks from each other? Maybe with something like: Answer Since you would want

Advertisement