feat: enhance logging and moderation response handling with improved serialization and error management

This commit is contained in:
MythEclipse
2026-05-30 20:13:44 +07:00
parent b105f9748a
commit b19529f135
10 changed files with 177 additions and 141 deletions
+5
View File
@@ -10,9 +10,14 @@ afterEach(() => {
describe("loadConfig", () => {
it("loads required values and coerces optional values", async () => {
// dotenv/config loads from .env when config.ts is imported, so
// override the relevant env vars that would be inherited from there
process.env = {
...originalEnv,
DISCORD_TOKEN: "token",
GUILD_ID: undefined as unknown as string,
VOICE_CHANNEL_ID: undefined as unknown as string,
MONITOR_GUILD_ID: undefined as unknown as string,
VERBOSE: "true",
WEBSERVER_PORT: "4000",
NODE_ENV: "test",