Mock a TypeScript constant different in every Jest test

后端 未结 0 1954
心在旅途
心在旅途 2021-01-14 08:56

I\'m struggling to mock a constant with Jest on a per test basis. I have it working with the code below, but the mock is "static" - I can\'t mock it differently fo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题