Open SoYoung210 opened 3 years ago
https://github.com/vercel/swr/blob/9e734aaff7d3082fc9fd7945f615fb63621b2bc7/test/use-swr.test.tsx#L1790
expect(container.textContent).toMatchInlineSnapshot(`"loading"`) await act(() => new Promise(res => setTimeout(res, 1000))) // update
https://github.com/vercel/swr/blob/9e734aaff7d3082fc9fd7945f615fb63621b2bc7/test/use-swr.test.tsx#L1790