mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
fix: address Phase 1 review — union types, auto playedAt, ESM imports, gitignore config.json
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9931d8b40d
commit
bc89c553b7
5 files changed
+15
-14
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { describe, it, expect, afterEach } from "vitest";
|
||||
import { join } from "node:path";
|
||||
import { mkdtempSync, rmSync } from "node:fs";
|
||||
import { mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
import { getDefaultConfig, loadConfig, saveConfig } from "./config.js";
|
||||
|
||||
@@ -41,7 +41,6 @@ describe("config", () => {
|
||||
|
||||
// Save a partial config by writing only some fields
|
||||
const partial = { webPort: 8080, locale: "en" };
|
||||
const { writeFileSync } = require("node:fs");
|
||||
writeFileSync(path, JSON.stringify(partial), "utf-8");
|
||||
|
||||
const loaded = loadConfig(path);
|
||||
|
||||
Reference in new issue
Block a user