refactor(core,packaging): relocate embedded assets and binary runtime to src/packaging and enforce core whitelist
This commit is contained in:
1 parent
3864f0ffd0
commit
27c86e052a
10 files changed
+20
-5
No files matched your search
@@ -113,4 +113,19 @@ describe("Architecture Layering Boundaries", () => {
|
||||
|
||||
expect(violations).toEqual([]);
|
||||
});
|
||||
|
||||
test("src/core/ must only contain whitelisted infrastructure modules", () => {
|
||||
const allowedTopLevel = new Set([
|
||||
"README.core.md",
|
||||
"auth",
|
||||
"cache",
|
||||
"config",
|
||||
"db",
|
||||
"errors.ts",
|
||||
"http",
|
||||
]);
|
||||
const entries = readdirSync(join(SRC_ROOT, "core"));
|
||||
const unexpected = entries.filter((entry) => !allowedTopLevel.has(entry));
|
||||
expect(unexpected).toEqual([]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user