refactor(apple): group artifact producers and verification (#952)

* refactor(apple): group artifact producers and verification

* test(apple): run affected native plist CLI regressions
This commit is contained in:
ysopwnable
2026-10-07 21:09:33 +08:00
committed by GitHub
parent a6ba772c08
commit ef1a0cc65a
50 changed files with 149 additions and 92 deletions
+19
View File
@@ -272,3 +272,22 @@ describe("test lane import boundaries", () => {
if (!allowed) expect(result.stdout).toContain("no-restricted-imports");
});
});
describe("Apple artifact producer ownership", () => {
it.each([
["../../application/Workflow.js", false],
["../../composition/android.js", false],
["../../cli.js", false],
["../../domain/apple/plistValue.js", true],
["../DirectoryArtifactReader.js", true],
])("checks the producer dependency %s", (dependency, allowed) => {
const violations = inspectModuleBoundaries(
"src/artifacts/apple/probe.ts",
`import type { Value } from ${JSON.stringify(dependency)};`,
process.cwd(),
);
expect(violations.length === 0).toBe(allowed);
if (!allowed) expect(violations[0]?.boundary).toBe("artifact-acquisition");
});
});