diff --git a/turbo/generators/__tests__/core-package-audit.e2e.test.ts b/turbo/generators/__tests__/core-package-audit.e2e.test.ts index 18af1b1..a3f12a1 100644 --- a/turbo/generators/__tests__/core-package-audit.e2e.test.ts +++ b/turbo/generators/__tests__/core-package-audit.e2e.test.ts @@ -61,9 +61,12 @@ describe("e2e: core-package audit", () => { !src.includes("packages/core-audit"), }); - // Strip @repo/core-audit from apps/web-next/package.json so pnpm install - // succeeds without the package being present (simulating the post-removal state). + // Strip @repo/core-audit from every package that references it so pnpm + // install succeeds without the package present (simulating the + // post-removal state). core-cms wires the audit-logs collection + erasure + // hook, so it depends on core-audit too. stripCoreAuditDep(join(tmp, "apps", "web-next", "package.json")); + stripCoreAuditDep(join(tmp, "packages", "core-cms", "package.json")); execSync(`cd ${tmp} && pnpm install --frozen-lockfile=false`, { stdio: "ignore", diff --git a/turbo/generators/__tests__/core-package-consent.e2e.test.ts b/turbo/generators/__tests__/core-package-consent.e2e.test.ts index cb51790..5eee946 100644 --- a/turbo/generators/__tests__/core-package-consent.e2e.test.ts +++ b/turbo/generators/__tests__/core-package-consent.e2e.test.ts @@ -65,6 +65,8 @@ describe("e2e: core-package consent", () => { // succeeds without the package being present (simulating the post-removal state). stripCoreConsentDep(join(tmp, "packages", "core-api", "package.json")); stripCoreConsentDep(join(tmp, "packages", "core-ui", "package.json")); + // web-next threads the consent factory into the tRPC context. + stripCoreConsentDep(join(tmp, "apps", "web-next", "package.json")); execSync(`cd ${tmp} && pnpm install --frozen-lockfile=false`, { stdio: "ignore", diff --git a/turbo/generators/__tests__/core-package-dsr.e2e.test.ts b/turbo/generators/__tests__/core-package-dsr.e2e.test.ts index 75084c4..6e187b6 100644 --- a/turbo/generators/__tests__/core-package-dsr.e2e.test.ts +++ b/turbo/generators/__tests__/core-package-dsr.e2e.test.ts @@ -64,6 +64,8 @@ describe("e2e: core-package dsr", () => { // Strip @repo/core-dsr from package.json files so pnpm install // succeeds without the package being present (simulating the post-removal state). stripCoreDsrDep(join(tmp, "packages", "core-api", "package.json")); + // web-next threads the DSR binding into the tRPC context. + stripCoreDsrDep(join(tmp, "apps", "web-next", "package.json")); execSync(`cd ${tmp} && pnpm install --frozen-lockfile=false`, { stdio: "ignore",