test(tasks): allow status command task-registry import

This commit is contained in:
Vincent Koc
2026-04-01 05:42:45 +09:00
parent 418fa12dfa
commit 0a7024e209

View File

@@ -5,7 +5,11 @@ import { describe, expect, it } from "vitest";
const TASK_ROOT = path.resolve(import.meta.dirname);
const SRC_ROOT = path.resolve(TASK_ROOT, "..");
const ALLOWED_IMPORTERS = new Set(["tasks/runtime-internal.ts", "tasks/task-owner-access.ts"]);
const ALLOWED_IMPORTERS = new Set([
"auto-reply/reply/commands-status.ts",
"tasks/runtime-internal.ts",
"tasks/task-owner-access.ts",
]);
async function listSourceFiles(root: string): Promise<string[]> {
const entries = await fs.readdir(root, { withFileTypes: true });