I want to test a function that fetch something from server, it looks like this :
import React, { useEffect } from \'react\'; function Component1() { use