Testing Node Server with Jest and Supertest

Testing Node Server with Jest and Supertest

Sam Meech-Ward

3 года назад

109,629 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

cannabisanomaly
cannabisanomaly - 26.10.2023 21:26

Anyone been able to figure out how to use EJS syntax for importing/exporting on the backend instead of CJS? I still haven't been able to figure out how to configure that 😅

Ответить
TenthFir
TenthFir - 25.10.2023 09:26

Why do you guys add music to a course video... I am here to learn. And even the music volume is more than your speech

Ответить
Guillaume
Guillaume - 07.10.2023 21:16

Great content, thank you

Ответить
ED
ED - 16.09.2023 17:24

Something is wrong with your dependecies

Ответить
ms. Mysh
ms. Mysh - 14.05.2023 20:39

I can’t concentrate because of your beautiful face 😅

Ответить
Shailendra kumar
Shailendra kumar - 11.05.2023 15:09

Thank you so much for the text version ♥

Ответить
Scrice
Scrice - 17.03.2023 02:36

thanks man this is awesome!!!

Ответить
Ali Kh
Ali Kh - 04.03.2023 19:08

TDD just seems tiresome and counter-productive
I've been interested to learn it since forever and have spent the last two days exploring it.
To be frank, it's not a fun nor motivating way to code.

Ответить
Tech
Tech - 08.02.2023 15:49

Thanks a lot for this! Would appreciate it if you could make a video regarding setup for this kind of test suite with Typescript-Express

Ответить
Brent Ryczak
Brent Ryczak - 06.02.2023 16:54

Instant like after that first tip about the ports. That was my issue

Ответить
Tomas
Tomas - 24.01.2023 20:54

Sam, great video! Thank you for contributing to the community... I am having a problem trying to reproduce the core of what you explained. For some reason the test fails saying that the request received a 404 but it should be a 403 (returned correctly testing it via postman). I think it has something to do with the routes and passing the app object to the request function of supertest... Any comments would be appreciated. Thank you in advance!

Ответить
Jao
Jao - 22.12.2022 01:51

thanks

Ответить
LeetCodeKing
LeetCodeKing - 13.12.2022 23:52

Hi. I just move to California from China, this is the best video I seen on topic. Thank you friend.

Ответить
Shahil Hussain
Shahil Hussain - 10.12.2022 10:03

That was very quick and simple explanation and use case of Jest and SuperTest, thanks man!.

Ответить
baby kosh
baby kosh - 07.12.2022 23:46

THANK YOU for doing the pseudo code steps!

Ответить
sammy gopeh
sammy gopeh - 27.11.2022 21:12

Lord! I cannot say thank you and enough

Ответить
Joonbeom Kwon
Joonbeom Kwon - 28.09.2022 09:26

You are so awesome!

Ответить
Rajendra Prasad
Rajendra Prasad - 22.09.2022 21:23

Can we get video on with middleware supertest

Ответить
Fred Wang
Fred Wang - 21.09.2022 11:03

To use `import express from 'express'`, are you using the latest node version or by importing ESM ?

Ответить
22SPORTSLIVE
22SPORTSLIVE - 12.09.2022 03:53

Can someone help with some unit test plz

Ответить