chore: Enhance database debugging setup and expand test mocks for Drizzle queries and Discord API interactions.

This commit is contained in:
syntaxbullet
2026-01-30 16:12:15 +01:00
parent 7049cbfd9d
commit 9a2fc101da
10 changed files with 43 additions and 13 deletions

View File

@@ -0,0 +1,16 @@
import postgres from "postgres";
const connectionString = "postgresql://auroradev:auroradev123@127.0.0.1:5432/aurora_test";
console.log("Connecting to:", connectionString);
const sql = postgres(connectionString);
try {
const result = await sql`SELECT 1 as val`;
console.log("Success:", result);
await sql.end();
} catch (e) {
console.error("Connection failed:", e);
await sql.end();
}