/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-testing-183c86535b78-testing-s0387-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 For testing, we recommend...
Testing
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#testing
Summary
For testing, we recommend using @cloudflare/vitest-pool-workers. Refer to examples for setting it up. If there is the application below. ```ts import { Hono } from 'hono' const app = new Hono() app...
Content
For testing, we recommend using @cloudflare/vitest-pool-workers.
Refer to examples for setting it up.
If there is the application below.
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => c.text('Please test me!'))We can test if it returns "200 OK" Response with this code.
describe('Test the application', () => {
it('Should return 200 response', async () => {
const res = await app.request('http://localhost/')
expect(res.status).toBe(200)
})
})