/Knowledge/sources/honojs__hono/llms-full/bun-testing--3c3271c43edb.md
Bun: Testing - hono-docs
Bun: Testing Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt testing Summary You can use bun:test for...
Bun: Testing
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#testing
Summary
You can use bun:test for testing on Bun. ```ts import { describe, expect, it } from 'bun:test' import app from '.' describe('My first test', () => { it('Should return 200 Response', async () => { const req = new Request('http://localho...
Content
You can use bun:test for testing on Bun.
import { describe, expect, it } from 'bun:test'
import app from '.'
describe('My first test', () => {
it('Should return 200 Response', async () => {
const req = new Request('http://localhost/')
const res = await app.fetch(req)
expect(res.status).toBe(200)
})
})
Then, run the command.
bun test index.test.ts
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#testing",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Bun > Testing",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 419,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Bun: Testing",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}