Building a URL shortener API with NestJS and PostgreSQL with tests (Part 2 | End-to-end testing)

preview_player
Показать описание

Learn how to build server-side applications in an efficient, reliable and scalable way.

#dominicarrojado #nestjs #postgresql #postgres #nodejsframework #docker #dockercompose #urlshortener #linkshortener #webdevelopment #testing #endtoendtest #e2e #e2etest

Timestamps:
0:00 - Intro
0:22 - Recap from Part 1
2:07 - Prerequisites
2:55 - Unit testing vs End-to-end testing
6:11 - Setup app in test env
12:45 - Write tests for get all the links feature
23:02 - Write tests for create a link feature
38:45 - Write tests for delete a link feature
46:01 - Write tests for update a link feature
52:20 - Write tests for redirect to URL by name feature

---

Рекомендации по теме
Комментарии
Автор

As part of the test setup, do add the code below just right after the `beforeEach()` to do a proper clean up after all the test cases are done:

afterAll(async () => {
await app.close();
});

DominicArrojado
visit shbcf.ru