/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-testing-183c86535b78-testing-s0442-c0000.md
Testing - hono-docs
Testing Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt testing Summary Testing the application o...
Testing
Source evidence: /Sources/raw/honojshono/honojshono.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/assertimport { 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