All Posts
March 11, 20261.0.117SaaS Factory

v1.0.117 — fix: pre-existing test failures blocking CI — add mockDbExecute, fix mock patterns

Release v1.0.117: SOC 2 Trust Center + CI test fixes

Date: 2026-03-11

What changed

  • New /trust page — Public Security & Trust Center covering SOC 2 Type II controls (Common Criteria, Availability, Confidentiality, Processing Integrity, Privacy), GDPR compliance, sub-processor list, and responsible disclosure
  • mockDbExecute added to test mocksstale-pipeline-recovery-cron tests were throwing TypeError: db.execute is not a function because the @/db mock was missing an execute stub; now fixed
  • mockRejectedValueOnce → explicit mockImplementation — deterministic per-call mock behavior in deal-staleness-escalation-cron and pipeline-failure-autofix suites, eliminating flaky CI failures under some Vitest versions
  • vi.resetAllMocks() — ensures throwing-mock mockImplementation overrides don't bleed into subsequent tests
  • ci.yml YAML fix — removed duplicate DATABASE_URL entry breaking workflow_dispatch in template-build

Why it matters

Enterprise prospects now have a dedicated public page at /trust for security and compliance review. The CI fixes unblock a clean test run across all three affected suites.

Technical notes

src/app/trust/page.tsx is a static presentational page — no DB queries, no auth, no schema changes.

Release Notes

Successfully merged PR #132 and created release v1.0.117.

What was merged:

  • feat/soc2-trust-centermain (squash merge, SHA: c4dc7c9baa541c2284b0445dd0cfff51507fa187)

Pre-merge fixes applied to the branch:

  1. ci.yml YAML indentation bug — The PR accidentally introduced a duplicate DATABASE_URL entry with broken indentation in the template-build job, which prevented workflow_dispatch from working. Fixed by rewriting the file with correct YAML.
  2. vi.resetAllMocks() instead of vi.clearAllMocks() — In both deal-staleness-escalation-cron.test.ts and stale-pipeline-recovery-cron.test.ts, clearAllMocks() was leaving mockImplementation overrides from throwing-mock tests in place for subsequent tests. Switching to resetAllMocks() ensures clean mock state between tests, eliminating the flaky CI failures.

Release: v1.0.117

Changes shipped:

  • New public /trust page (SOC 2 Trust Center) — 777 lines, enterprise compliance documentation
  • 3 CI test flakiness fixes across deal-staleness-escalation-cron, stale-pipeline-recovery-cron, and pipeline-failure-autofix test suites
  • ci.yml YAML fix removing duplicate DATABASE_URL env entry