Lane C
Lane C
Explore posts from servers
HHono
Created by Lane C on 8/19/2024 in #help
Vitest with Hono
Has anyone been able to exand the basic app that comes with npm create hono@latest my-app -> "cloudflare workers" to work with vitest? I tried to reference the blog example that uses vitest but running into multiple issues. It would be great is the template came with vitest to work with hono/workers as I asuume this would be the default choice for antone starting anew project on hono. Here is my repo with this attempt: https://github.com/lane711/sonicjs/tree/feature/rebuild-vite
3 replies
CDCloudflare Developers
Created by Lane C on 8/3/2023 in #workers-help
Update miniflare-typescript-esbuild-jest project to include D1?
Any chance of getting this example project extended to include D1? Right now it shows how to setup jest for KV and Durable Objects, but I am striggling to setup jest with D1. I am getting an error "Not injecting D1 Database for 'D1DATA' as this version of Miniflare only supports D1 beta bindings. Upgrade Wrangler and/or Miniflare and try again." https://github.com/cloudflare/miniflare-typescript-esbuild-jest
1 replies