/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-testing-183c86535b78-testing-s0419-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 You can use bun:test for...
Testing
Source evidence: /Sources/raw/honojshono/honojshono.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