Skip to content

test: migrate golden-master suites into the package - #12

Merged
diegohb merged 3 commits into
issue-1-initial-rollout-specfrom
issue-5-golden-tests
Nov 23, 2026
Merged

diegohb merged 3 commits into
issue-1-initial-rollout-specfrom
issue-5-golden-tests

Conversation

@diegohb

@diegohb diegohb commented Nov 23, 2026

Copy link
Copy Markdown
Member

Closes #5

Test-count parity (source @ 3169c7a → port)

Suite Source Port
test/seo-service.spec.ts 94 94
test/seo-page-builder.spec.ts 86 86
test/seo-equiv.spec.ts 8 (4 static + 4 scenario-loop) 8
src/services/seo-specs.spec.ts → test/seo-specs.spec.ts 5 5
src/models/seo-config.spec.ts → test/seo-config.spec.ts 10 10
Total 203 203

Zero assertions changed. Diff vs source is import-lines plus removal of the aurelia DI mock harness (the package replaced DI with a plain no-op logger; the mock was never asserted on). jsdom document setup and all head-output assertions are verbatim.

Package bug found + fixed

  • \src/index.ts\ re-exported \SeoPageBuilder/\ContentPageBuilder\ as types only, but the source exports them as class values and the tests assert \ oBeInstanceOf. Fixed by exporting them as values (\ ix: export builder classes as values from public entry).

Other changes

  • Deleted scaffold placeholder \src/index.test.ts\ (duplicated coverage now owned by the migrated suites). \src/index.ts\ exports unchanged otherwise.
  • \�un run typecheck, \�un run lint, \�un run test\ all green: 203/203.

Part of #1.

@diegohb
diegohb merged commit 876ecaf into issue-1-initial-rollout-spec Nov 23, 2026
1 check passed
@diegohb
diegohb deleted the issue-5-golden-tests branch November 23, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant