ConusAI vendor v0.1.0-beta.114
ci / gate (push) Waiting to run

This commit is contained in:
ConusAI vendor v0.1.0-beta.114
2026-11-14 09:56:45 +00:00
commit 1ce8d23c35
867 changed files with 122104 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
// Which `modules/<id>/__tests__/isolation.ts` files the tenant-isolation suite reads: those of the modules
// the app registers. A module folder that is present but not registered (built and tested, held until its
// owner opens it) serves no procedure, so its fixtures would name procedures this registry does not have.
import { existsSync, readdirSync } from "node:fs"
import { join } from "node:path"
export function isolationFilesOf(modulesDir: string, registered: Iterable<string>): string[] {
const ids = new Set(registered)
return readdirSync(modulesDir)
.filter((id) => ids.has(id))
.map((id) => join(modulesDir, id, "__tests__", "isolation.ts"))
.filter((path) => existsSync(path))
}