Jest not covered the function inside useEffect

后端 未结 0 1433
梦毁少年i
梦毁少年i 2020-12-19 05:16

I want to test a function that fetch something from server, it looks like this :

import React, { useEffect } from \'react\';

function Component1() {

    use         


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