SWR Learning Reference https://jestjs.io/docs/expect https://vitest.dev/api/mock.html https://testing-library.com/docs/ecosystem-jest-dom/ Don't use fake time with waitFor testing-library/react-testing-library#1208 https://www.freecodecamp.org/news/improve-user-experience-with-optimistic-ui-swr/