How to import a jest.mock that is placed in another file

前端 未结 0 1214
悲&欢浪女
悲&欢浪女 2021-01-20 20:22

I have a React app with some jest tests. I am doing this mock in several tests:

// test1.test.tsx
jest.mock(\'_state/Provider\', () => ({
  useSth: () =>         


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