Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Deno
  3. superoak

superoak

MITTypeScript5.0.1

HTTP assertion library for testing Deno's Oak web framework, built as a wrapper around SuperDeno.

Visit WebsiteGitHubGitHub
121 stars10 forks0 contributors

What is superoak?

SuperOak is an HTTP assertion library specifically designed for testing web applications built with Deno's Oak framework. It provides a high-level abstraction that simplifies writing integration and functional tests by wrapping SuperDeno and reducing boilerplate code. Developers can easily make assertions against Oak routes, handle server lifecycle automatically, and use a familiar SuperAgent-inspired API.

Target Audience

Deno developers building web applications with the Oak framework who need a streamlined way to write HTTP integration tests. It's particularly useful for those already familiar with SuperDeno or SuperAgent-style testing patterns.

Value Proposition

SuperOak eliminates the manual server setup and teardown typically required for Oak testing, offering a promise-based interface that integrates seamlessly with Deno's test runner. Its compatibility with SuperDeno ensures robust HTTP assertion capabilities while being tailored specifically for Oak's architecture.

Overview

HTTP assertions for Oak made easy via SuperDeno. 🐿 🦕

Use Cases

Best For

  • Writing integration tests for Oak-based web APIs
  • Automated testing of Oak route handlers and middleware
  • Functional testing of HTTP endpoints in Deno applications
  • Reducing boilerplate in Oak application test suites
  • Leveraging SuperDeno patterns specifically for Oak frameworks
  • Testing Oak applications with Deno's built-in test framework

Not Ideal For

  • Projects not using Deno's Oak web framework (e.g., Express in Node.js or Hono in Deno)
  • Test suites requiring reusable HTTP request instances across multiple assertions
  • Teams prioritizing actively maintained libraries with regular updates and support
  • Applications needing integration with non-Deno testing frameworks or CI/CD tools

Pros & Cons

Pros

Seamless Oak Integration

Directly accepts Oak Application objects or server URLs, eliminating manual server setup for testing integration with Oak routes and middleware.

Automatic Server Management

Handles server creation, ephemeral port binding, and automatic closure after tests, reducing boilerplate code as highlighted in the example.

Familiar SuperAgent API

Leverages the well-known SuperAgent API for building HTTP requests (e.g., .get(), .post()), making it easy for developers experienced with similar tools.

Deno Native Support

Compatible with Deno's built-in test framework and other Deno libraries, ensuring smooth integration into Deno projects without extra dependencies.

Cons

Non-Reusable Instances

SuperOak instances cannot be reused across multiple requests; attempting to do so results in a 'Request has been terminated' error, as explicitly warned in the FAQ.

Lack of Maintenance

The project is marked as not maintained (per the badge in the README), with no recent updates, risking compatibility issues with newer Deno or Oak versions.

Promise Handling Complexity

Returns a promise that must be awaited before making assertions, which can cause type errors if mishandled, as detailed in the FAQ section on common mistakes.

Frequently Asked Questions

Quick Stats

Stars121
Forks10
Contributors0
Open Issues1
Last commit17 hours ago
CreatedSince 2020

Tags

#integration-testing#testing-library#deno#http-testing#assertions#typescript#testing#oak#oak-framework#web-framework#deno-doc#supertest

Built With

D
Deno
O
Oak
T
TypeScript

Links & Resources

Website

Included in

Deno4.4k
Auto-fetched 7 hours ago

Related Projects

deno-puppeteerdeno-puppeteer

A port of puppeteer running on Deno

Stars458
Forks47
Last commit2 years ago
unexpectedunexpected

Unexpected - the extensible BDD assertion toolkit

Stars368
Forks25
Last commit3 months ago
superdenosuperdeno

Super-agent driven library for testing Deno HTTP servers.

Stars124
Forks8
Last commit1 year ago
rhumrhum

A test double library

Stars91
Forks6
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub