Thanks, Dave! I truly appreciate your method of walking us through each pre-existing file rather than writing them from scratch. It's a direct and effective way to learn. Keep up the fantastic work, your teaching style is incredibly helpful!
You helped me build my knowledge in React/Next. And I was struggling to start with react testing and here you are to help me through! Thank you for this series. Expecting more on testing. It would be great if you can also help with E-to-E with Cypress like you mentioned in the video.
I would really like to se more tests with mocking API part, maybe router also. It's something I intend to cover these days in my app. Hope to se more materials soon. Stay well
21:58 - "When the parent component has 'use client' then all of its children will be client components" As the docs say, it's not true. The client component can have server components inside
Nice video! Quick thought though… Aren’t the integration tests showcased at the end enough to cover all use cases of the app? Therefore, the unit tests don’t provide any value and it’s just a duplication of tests at that point?
Still need to get into testing, haven't done any since learning how to program as a frontend less than 1 year in, I thought typescript helps keep code safe... but am wrong haha
Hi Dave, great videos as always. I'm currently going through all of your next.js videos tutorials. I've noticed that In the todo notes app previously in next-js-course/next11 it seems that react hooks and states are only used in the AddTodo component instead of passing on setTodos from the home component. I am not sure what are the effects from this choice. Does jest testing require that the setTodo state being passed down? I am a little confused by the added complexity and why the same approach is not used in both projects. sorry if it is a silly question.
Thank you for everything you do, Sir. I am determined to become a frontend developer but I am confused about🎉 the pathway to follow. There are countless of tools programmers suggest we learn. Through your videos I am already learning HTML, CSS and JavaScript, and I know there are more. Sir, can you please give me the pathway you believe is right to become a frontend developer?
Thanks dave, but how do i get to ask you questions on your discord, and i really love your videos, but then how do we test a particular function that involves the redux, maybe you can do a video on that using next js, typescript and redux
You post questions in the appropriate channel on Discord where I and others can help. It is fairly active. I don't check every day but I do when I can.
@@DaveGrayTeachesCode okay dave, thank you so much, but one of the questions i'd like to ask is how i can implement testing an application that utilizes redux, this is because my test keeps failing because the function i'm trying to test contains redux state
2006 todo app: js code alone, run the app, oh there's a bug, no user cared, fixed it [total time of development 2 hours] 2024 todo app: typescript, eslint, jest, unit test, integration test, e2e test [total time of development 2 weeks] we're regressing. dear recruiters of my ass, leave these sort of stuff to fang companies and don't waste our balls please
This series of videos have been amazing. I am curious though, Why bother testing in Typescript? It feels like Typescript is its own kind of test and when combining it with jest you are just adding unnecessary complexity.
Thanks, Dave! I truly appreciate your method of walking us through each pre-existing file rather than writing them from scratch. It's a direct and effective way to learn. Keep up the fantastic work, your teaching style is incredibly helpful!
It's like we got more Next.js with Dave this week
You helped me build my knowledge in React/Next. And I was struggling to start with react testing and here you are to help me through! Thank you for this series. Expecting more on testing. It would be great if you can also help with E-to-E with Cypress like you mentioned in the video.
Thank you for making this fantastic video!
every so often you come across a vid that hits the nail on the head and gives you exactly what you want. This is one. Thank you!
brilliant! very happy to see more unit testing content.
Dave Gray, you absolute legend! 😁
explaining is way better than the official docs. Thanks for the video :)
Got this when needed ! 😇
Thank you Dave Sir !
thanks
Thanks Dave!
Cheers 🎉🎉🎉
Thank you save. A tutorial on Cypress testing would be amazing to.
Great video, looking forward to the next part of your testing series :) Thanks
Thanks, Dave!! You make very profeccional videos as a teacher and as a coder))
I would really like to se more tests with mocking API part, maybe router also. It's something I intend to cover these days in my app. Hope to se more materials soon. Stay well
21:58 - "When the parent component has 'use client' then all of its children will be client components"
As the docs say, it's not true. The client component can have server components inside
Great Video. Im wondering if you can also demo on how to test Server components?
Nice video! Quick thought though…
Aren’t the integration tests showcased at the end enough to cover all use cases of the app?
Therefore, the unit tests don’t provide any value and it’s just a duplication of tests at that point?
incredible ! by the way what's your vs code icon theme?
The icon theme is vscode-icons
Still need to get into testing, haven't done any since learning how to program as a frontend less than 1 year in, I thought typescript helps keep code safe... but am wrong haha
E2E testing with cypress in next.js would be cool! 😊
Hi Dave, great videos as always. I'm currently going through all of your next.js videos tutorials.
I've noticed that In the todo notes app previously in next-js-course/next11 it seems that react hooks and states are only used in the AddTodo component instead of passing on setTodos from the home component.
I am not sure what are the effects from this choice. Does jest testing require that the setTodo state being passed down? I am a little confused by the added complexity and why the same approach is not used in both projects.
sorry if it is a silly question.
Superb 🙌
Thanx Dave 😊 🙏
Thank you for everything you do, Sir. I am determined to become a frontend developer but I am confused about🎉 the pathway to follow. There are countless of tools programmers suggest we learn.
Through your videos I am already learning HTML, CSS and JavaScript, and I know there are more.
Sir, can you please give me the pathway you believe is right to become a frontend developer?
Link at the top of the description for this video to my free Web Dev Roadmap for Beginners.
21:13 Isn't recommended to have several assertions in the same test? There you could assert the mock to be called and the input to be empty
Thanks dave, but how do i get to ask you questions on your discord, and i really love your videos, but then how do we test a particular function that involves the redux, maybe you can do a video on that using next js, typescript and redux
You post questions in the appropriate channel on Discord where I and others can help. It is fairly active. I don't check every day but I do when I can.
@@DaveGrayTeachesCode okay dave, thank you so much, but one of the questions i'd like to ask is how i can implement testing an application that utilizes redux, this is because my test keeps failing because the function i'm trying to test contains redux state
How to test a server action after form submission ?
Hi Dave, Should we use NextJs just for front end developement?
You can. If you work through the Next.js course on my channel, you will also see that it offers backend route handlers.
2006 todo app: js code alone, run the app, oh there's a bug, no user cared, fixed it [total time of development 2 hours]
2024 todo app: typescript, eslint, jest, unit test, integration test, e2e test [total time of development 2 weeks]
we're regressing. dear recruiters of my ass, leave these sort of stuff to fang companies and don't waste our balls please
where to take source code from video?
Can i request a video ? if yes, how do i login to nextauth magic email with playwright
This series of videos have been amazing. I am curious though, Why bother testing in Typescript? It feels like Typescript is its own kind of test and when combining it with jest you are just adding unnecessary complexity.
thx
Like that