RepositoryTypeScriptGBUnited Kingdom
CM

cmorten/superoak

HTTP assertions for Oak made easy via SuperDeno. 🐿 🦕

121stars
10forks
2issues
0views

🧪 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.

RepositoryTypeScript
cmorten/superdeno

Super-agent driven library for testing Deno HTTP servers.

123
Aug 25, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

208.6k
Oct 25, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

194.3k
Oct 25, 2026
RepositoryTypeScript
oakserver/oak

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕

5.4k
Feb 22, 2026
RepositoryRust
denoland/deno

A modern runtime for JavaScript and TypeScript.

108.7k
Oct 21, 2026
RepositoryGo
stretchr/testify

A toolkit with common assertions and mocks that plays nicely with the standard library

26.2k
Oct 19, 2026
RepositoryJavaScript
forwardemail/supertest

🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

14.4k
Oct 13, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Feb 15, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

457.9k
Oct 25, 2026