refactor!: migrate away from bun

- migrate package management to pnpm
- migrate test suite to vitest
- also remove Anify integration
This commit is contained in:
2025-12-12 19:24:28 -05:00
parent 748aaec100
commit 23b14536cc
63 changed files with 1837 additions and 9205 deletions

View File

@@ -1,3 +1,5 @@
import { env } from "cloudflare:test";
/** Should only be used when it doesn't make sense for 'Bindings' or 'Variables' to be set. Otherwise, use getTestEnv(). */
export function getTestEnvVariables(): Cloudflare.Env {
return getTestEnv();
@@ -5,14 +7,11 @@ export function getTestEnvVariables(): Cloudflare.Env {
export function getTestEnv({
ADMIN_SDK_JSON = '{"client_email": "test@test.com", "project_id": "test-26g38"}',
ENABLE_ANIFY = "true",
TURSO_AUTH_TOKEN = "123",
TURSO_URL = "http://127.0.0.1:3001",
LOG_DB_QUERIES = "false",
}: Partial<Cloudflare.Env> = {}): Cloudflare.Env {
return {
...env,
ADMIN_SDK_JSON,
ENABLE_ANIFY,
TURSO_AUTH_TOKEN,
TURSO_URL,
LOG_DB_QUERIES,
};
}