You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For writing test descriptions, I personally look at it as the "should" between it and what goes in (...) is silent i.e. the statement "getSessionToken should return a valid token" in test form could be written as describe("getSessionToken") next line will be it("return a valid token") so between the describe and it, there's a silent 'should' which somewhat makes the test read better
This component is a good canditate to try out the ts-pattern package for states
selecta/src/provider/SignInProvider.tsx
Line 26 in 5addba3
Add prettier or biome to help you with format consistency, I see some of these are single quotes and some are double quotes
selecta/src/provider/AuthProvider.tsx
Line 1 in 5addba3
For writing test descriptions, I personally look at it as the "should" between
itand what goes in(...)is silent i.e. the statement "getSessionToken should return a valid token" in test form could be written asdescribe("getSessionToken")next line will beit("return a valid token")so between the describe and it, there's a silent 'should' which somewhat makes the test read betterselecta/src/lib/utils.test.ts
Line 60 in 5addba3
ofetch from unjs.io is much much better than the polyfilled fetch out there. Just sayin
selecta/src/lib/spotify/utils.ts
Line 55 in 5addba3
just
selecta/src/lib/spotify/constants.ts
Line 42 in 5addba3
Why do react people do this? This component has a single node already, what's the point of the empty tags?
selecta/src/components/loading/LoadingTracks.tsx
Line 3 in 5addba3
I got to use it a bit, it's pretty neat. It took a while to figure out how to get started but that's a story for another day