How to Debug Jest Tests in VS Code for React

  Рет қаралды 17,214

Coding With Adam

Coding With Adam

Күн бұрын

Пікірлер: 15
@roymathew7956
@roymathew7956 7 күн бұрын
This really helped tie together a lotta different things. Especially helpful was the idea that you can right click on the break point and set a conditional.
@CodingWithAdam
@CodingWithAdam 4 күн бұрын
That's great to hear! I'm so glad the tutorial was helpful and that the conditional breakpoint tip stood out for you. It's such a handy feature, and I'm thrilled it made things clearer for you. Thanks for letting me know - I really appreciate the feedback!
@kirarevcrow
@kirarevcrow 2 жыл бұрын
Among the few KZbinrs that actually take the time to explain the little things and don't assume things. Keep it up!
@CodingWithAdam
@CodingWithAdam 2 жыл бұрын
Thank you Revcrow! I really appreciate the feedback! 😁
@kinneko3140
@kinneko3140 4 ай бұрын
Very good explained. Good that somebody teach javascript developer the basics of programming. But it is not what I exactly search for. I want to start only one test and debug it. I use the "debug test" from visual studio code, it says that a debugger is attached, but i do not hit a breakpoint. maybe I expect too much from javascript :) I normally work with C# or Go, which is really easy to debug
@CodingWithAdam
@CodingWithAdam 4 ай бұрын
Thank you! JavaScript/ node.js can be a bit difficult compared to languages like C#. I would suggest checking out some of the vs code extensions like jest test runner. They add a debug and run test button above each test. You can also open a debug terminal from vs code. I hope that you were able to figure this out. It might be a good future video idea that I might work on.
@jonaskromwell4464
@jonaskromwell4464 Жыл бұрын
Would this also be possible in Visual Studio 2022?
@CodingWithAdam
@CodingWithAdam Жыл бұрын
I’m not sure but my guess is that it is different.
@jonaskromwell4464
@jonaskromwell4464 Жыл бұрын
@@CodingWithAdam Cool. Thank you for the response. I'm going to use your methods in VSCode and keep pursuing getting VS 2022 working, as well. Thank you for the great, thorough content!
@CodingWithAdam
@CodingWithAdam Жыл бұрын
You’re welcome! That’s good to hear 😀
@TheSlyProfessor
@TheSlyProfessor 2 жыл бұрын
This didn't work for me unfortunately. I wonder what config change I need to make...
@TheSlyProfessor
@TheSlyProfessor 2 жыл бұрын
Never mind. It was an issue with path because my folder was part of a larger workspace. It's working now, but it is running all of the tests. Is there a way to select a specific path so to run only a subset of tests based on a directory I choose?
@CodingWithAdam
@CodingWithAdam 2 жыл бұрын
Hi Nakul, this answer from stackover flow might help stackoverflow.com/a/61012334
Introduction to Test Driven Development with React
20:38
Coding With Adam
Рет қаралды 21 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 181 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 61 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 118 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Debugging in Visual Studio Code: Ultimate Guide for Developers
10:56
Monsterlessons Academy
Рет қаралды 3,3 М.
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 222 М.
React Testing Crash Course
58:36
Traversy Media
Рет қаралды 319 М.
Debug Jest Tests
12:16
Kent C. Dodds
Рет қаралды 10 М.
React Native Tutorial #21 - Debugging in VS Code
11:40
Mash School
Рет қаралды 72 М.
React Testing Library Tutorial #11 - Integration Tests
17:39
Net Ninja
Рет қаралды 66 М.
How To Debug React Apps
17:45
Codevolution
Рет қаралды 18 М.
React Testing Library Crash Course
1:16:52
Laith Academy
Рет қаралды 89 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 61 МЛН