У нас вы можете посмотреть бесплатно Test Driven Development Series - EP3 - Reading Users from Database using TDD или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Writing Test Cases & Database Reads Using TDD | Vitest & Prisma In this video, we dive into Test-Driven Development (TDD) by writing our first test cases and implementing database reads step by step. We’ll follow the TDD cycle: Write a Test → Implement Code → Refactor to ensure a structured development workflow. 🔹 What You’ll Learn: ✅ Understanding the TDD cycle and best practices ✅ Setting up Vitest for testing ✅ Using pnpm and configuring package scripts ✅ Writing and running your first test case ✅ Implementing a basic Express app and fixing failing tests ✅ Testing the /user API with mocked database responses ✅ How to properly mock Prisma calls to avoid real database mutations ✅ Applying the AAA Pattern (Arrange, Act, Assert) in TDD 📌 Chapters: 00:00 ➤ Introduction 00:32 ➤ Cycle of TDD 00:50 ➤ Setup scripts in package.json 01:50 ➤ Writing first test 02:48 ➤ Running test 03:47 ➤ Writing App Implementation 04:47 ➤ Fixing test case 05:41 ➤ User DB READ test 09:31 ➤ /user API implementation 12:13 ➤ How to completely mock Prisma calls 14:00 ➤ TDD Logic in action 16:00 ➤ Outro By the end of this video, you’ll have a working test setup for handling database reads with Prisma, Vitest, and Supertest, following a structured TDD approach. 🚀 Stay tuned for the next video, where we’ll implement Create and Update operations with tests! 🔔 Subscribe & turn on notifications to keep up with the series! 💬 Drop your questions & feedback in the comments below! #TDD #Vitest #NodeJS #Prisma #Testing #TypeScript #pnpm