mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-26 07:57:40 +00:00
test(tasks): allow status command task-registry import
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user