🔥More exclusive content: https://productioncoder.com/you-decid...
Twitter: / _jgoebel
Website: https://jangoebel.com
Blog: https://productioncoder.com
Code: https://github.com/productioncoder/su...
00:00 using supertest to test your Node.js application
00:50 installing supertest and Jest
02:24 restructuring our project to make it ready for testing
04:14 writing integration tests with supertest
05:47 making a post request with supertest
06:25 assertions with jest and supertest
08:44 running our tests
09:06 conclusion
Today we cover how to use supertest with Node.js and Jest. In this express supertest tutorial we set our test environment and start making requests to an existing express server. Apart from assertions in Jest, we also talk about how to properly run and group tests by creating a custom test script you can put in your package.json file.
En esta página del sitio puede ver el video en línea Supertest express tutorial | Node REST API testing de Duración online en buena calidad , que subió el usuario Jan Goebel 05 julio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 20,930 veces y le gustó 319 a los espectadores. Disfruta viendo!