From 106fec6a62f0ed200de6ac866cf0069392aecfe0 Mon Sep 17 00:00:00 2001 From: sunlei Date: Wed, 24 Jun 2026 16:45:38 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=85=81=E8=AE=B8NapCat=20WebUI?= =?UTF-8?q?=E7=BD=91=E5=85=B3=E5=AD=90=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qqbot/architecture/qqbot-module-boundary.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/modules/qqbot/architecture/qqbot-module-boundary.spec.ts b/test/modules/qqbot/architecture/qqbot-module-boundary.spec.ts index 3139bd0..3230af8 100644 --- a/test/modules/qqbot/architecture/qqbot-module-boundary.spec.ts +++ b/test/modules/qqbot/architecture/qqbot-module-boundary.spec.ts @@ -60,6 +60,9 @@ describe('QQBot third-phase module boundaries', () => { 'infrastructure', 'schema', ]); + const moduleSpecificAllowedDirectories = new Map([ + ['napcat', new Set(['webui-gateway'])], + ]); const allowedRootFiles = new Set(['index.ts']); const violations = ['core', 'plugin-platform', 'napcat'].flatMap( @@ -67,7 +70,10 @@ describe('QQBot third-phase module boundaries', () => { listTopLevelEntries(moduleName) .filter((entry) => entry.isDirectory - ? !allowedDirectories.has(entry.name) + ? !allowedDirectories.has(entry.name) && + !moduleSpecificAllowedDirectories + .get(moduleName) + ?.has(entry.name) : !allowedRootFiles.has(entry.name) && !entry.name.endsWith('.module.ts'), )