Files
caddy-proxy-manager/tests/helpers/bun-sqlite-compat.ts
akanealw 99819b70ff
Some checks failed
Build and Push Docker Images (Trusted) / build-and-push (., docker/caddy/Dockerfile, caddy) (push) Has been cancelled
Build and Push Docker Images (Trusted) / build-and-push (., docker/l4-port-manager/Dockerfile, l4-port-manager) (push) Has been cancelled
Build and Push Docker Images (Trusted) / build-and-push (., docker/web/Dockerfile, web) (push) Has been cancelled
Tests / test (push) Has been cancelled
added caddy-proxy-manager for testing
2026-04-21 22:49:08 +00:00

7 lines
438 B
TypeScript
Executable File

// Vitest-only shim: maps bun:sqlite's named Database export to better-sqlite3.
// Used via resolve.alias in vitest.config.ts so tests that transitively import
// src/lib/db.ts (which uses bun:sqlite) don't fail under Node.js.
// No actual queries run via this path in the affected tests (DATABASE_URL=:memory:
// skips migrations, and the tested functions don't touch the database).
export { default as Database } from 'better-sqlite3';