refactor!: migrate away from bun
- migrate package management to pnpm - migrate test suite to vitest - also remove Anify integration
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user