test(postcard): unit tests for overrides, fallback, partials, samples, validation, sync and branding

- Pin override precedence, fallback, partials, samples, draft validation and branding
- Postgres TestStore/TestSync for index sync, drift hashes and reset
- Pact row-state and mail capability method-set pins; attach AbsolutePublicURL cases

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 14:04:14 +01:00
parent 1df2e31dea
commit 659969b9ac
9 changed files with 966 additions and 5 deletions

View File

@@ -68,6 +68,14 @@ PHASE35_BASE_TAG="${PHASE35_BASE_TAG:-v0.6.3}"
# required by name in DOCKER_TESTS.
GO_TESTS=(
./modules/postcard:TestMailPartialsSmoke
./modules/postcard:TestOverride
./modules/postcard:TestFallback
./modules/postcard:TestPartial
./modules/postcard:TestSample
./modules/postcard:TestValidateDraft
./modules/postcard:TestBrand
./modules/pact:TestRowStateValues
./modules/lagoon/attach:TestAbsolutePublicURL
)
# docker stage: the non-short framework tests (Postgres).
@@ -77,6 +85,8 @@ DOCKER_TESTS=(
./modules/postcard:TestMailBrandSmoke
./modules/cabana:TestMailScreensSmoke
./modules/lagoon:TestMigrateStatusJSON
./modules/postcard:TestStore
./modules/postcard:TestSync
)
# admin stage: vitest files that must pass.