United Kingdomcmorten/superoak
HTTP assertions for Oak made easy via SuperDeno. 🐿 🦕
🧪 SuperOak – Assertion HTTP cho Oak trên Deno
SuperOak là lớp bao bọc quanh SuperDeno, giúp viết test HTTP cho framework Oak mà không cần cấu hình phứ tạp.
SuperOak là một module TypeScript cho phép thực hiện các assertion HTTP trong framework web Oak của Deno. Dựa trên SuperDeno, nó cung cấp một API trực quan để gửi yêu cầu và kiểm tra phản hồi — lý tưởng cho test tích hợp và chức năng với Oak.
✨ Điểm nổi bật
- Assertion HTTP: Gửi GET/POST và kiểm tra status, body, header.
- Hỗ trợ Oak Application: Tự động khởi tạo server, chọn cổng tự do, đóng server khi gọi
.end(). - Tương thích bất kỳ framework test nào: Dùng với Deno test, hay framework khác.
- Dựa trên SuperDeno: Tận dụng API quen thuộc từ thế giới Node.js (SuperTest).
- Cài đặt đơn giản: Import trực tiếp từ Deno Registry hoặc nest.land.
- Hỗ trợ yêu cầu tùy biến: Dùng API superagent để thiết lập header, body, content-type.
💡 Vì sao đáng chú ý
SuperOak giúp giảm boilerplate khi test HTTP với Oak, đặc biệt hữu ích khi phát triển API. Không cần quản lý cổng hay vòng đời server thủ công — chỉ cần truyền Application và bắt đầu test.
#Deno #Oak #Testing #HTTP #SuperDeno #TiniX
Similar Projects
Discover other similar projects and AI models.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
A toolkit with common assertions and mocks that plays nicely with the standard library
🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.