Steven
Steven
TTCTheo's Typesafe Cult
Created by Steven on 1/9/2024 in #questions
Next.Js testing
My background - I am a software engineer working as the lead frontend currently with 4 years of experience working on frontend applications using Next.js + TypeScript (currently) My question is - I haven't done any frontend testing before at all (Only on our backend in python at work) What libraries would you recommend to use to test the frontend and what is your opinion on how much the test coverage should be? (>50%?, 80%? 100%?) Also any videos would be useful 🙂 I've looked into Jest, React Testing Library, and Vitest but wanted to hear from the community and what you guys prefer and if you have the time to give a few points on why. Edit: What is typically tested? All components or only key components? Utility functions? At what point is it unnecessary to test?
6 replies
TTCTheo's Typesafe Cult
Created by Steven on 6/6/2023 in #questions
NextAuth & AWS Cognito SignOut issues
I'm currently facing an issue with Next.JS and NextAuth when signing a user out. Also to note I'm using AWS Cognito as the provider with AWS Cognito's hosted UI for the user to input their credentials. The issue happens when a user is logged in, and chooses to signOut using NextAuth's signOut method, but when they sign back in it automatically signs the user with the same account. E.g. Account A is signed in and they want to login to Account B, but when logging out, and logging back in it automatically signs back into Account A without asking for credentials.
2 replies