Ch 11 - Automated Testing with Bun
Автор: Nick Olson Codes
Загружено: 2025-12-13
Просмотров: 96
Описание:
Support me directly: https://ko-fi.com/nickolsoncodes
Course Playlist: • Intro - Build a Full-Stack App with Cloudf...
Link to the Code: https://github.com/naolson2025/cloudf...
This is chapter 11 of my full stack Cloudflare & Hono Course. In this chapter we will:
Add a script to create our test DB
Add a script to destory the test DB
Configure our tests to run using our test DB
Write automated tests for the `insertSubscriber` function
Docs:
Bun Test Runner: https://bun.com/docs/test
My Dev Tools:
Raycast: https://raycast.com/?via=nick-olson
Warp Terminal: https://app.warp.dev/referral/LQVVD6
#bunjs #cloudflare #automationtesting #sqlite
Chapters:
0:00 - 1:35 - Intro
1:36 - 8:10 - Add `create-test-db.ts` script
8:11 - 9:44 - Run & verify `create-test-db.ts` script works
9:45 - 11:40 - Enhance `create-test-db.ts`
11:41 - 14:23 - Add `destroy-test-db.ts` script
14:24 - 15:48 - Add automated test script
15:49 - 19:11 - Connect to test db function
19:12 - 29:32 - Add happy path test
29:33 - 37:18 - Test duplicate emails throws an error
37:19 - 40:05 - Test Invalid email throws an error
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: