/Knowledge/sources/honojs__hono/llms-full/deno-testing--370d9685bdfa.md
Deno: Testing - hono-docs
Deno: Testing Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt testing Summary Testing the application...
Deno: Testing
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#testing
Summary
Testing the application on Deno is easy. You can write with Deno.test and use assert or assertEquals from @std/assert. sh deno add jsr:@std/assert ```ts [hello.ts] import { Hono } from 'hono' im...
Content
Testing the application on Deno is easy.
You can write with Deno.test and use assert or assertEquals from @std/assert.
deno add jsr:@std/assert
import { Hono } from 'hono'
import { assertEquals } from '@std/assert'
Deno.test('Hello World', async () => {
const app = new Hono()
app.get('/', (c) => c.text('Please test me'))
const res = await app.request('http://localhost/')
assertEquals(res.status, 200)
})
Then run the command:
deno test hello.ts
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#testing",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Deno > Testing",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 442,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Deno: Testing",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}