Jest can instead use jsdom to emulate portions of the browser in a test ... Our recommendation is to mock async requests at the fetch/xhr level using tools ...
確定! 回上一頁