test(installation): skip media the cdn build excludes in the workspace contract

Merged
MM
25d ago
+6-1

Summary

mmcc/moq CI fails on Test packages (1/4). This started with the upstream sync, which brought in installation's workspace contract test. That test requires CDN_MEDIA_SUBPATHS to list every media definition under packages/html/src/define/media/. On this branch that includes simple-moq-video, which packages/cdn/vite.config.ts deliberately keeps off the CDN (cdnMediaExclusions) until the MoQ engine can report errors. The subpath list is right; the test didn't know about the exclusion.

Changes

  • The contract test skips definitions the CDN build excludes (CDN_EXCLUDED_MEDIA, which mirrors cdnMediaExclusions).
  • The CDN config's comment now says to remove the test's entry along with the exclusion.

Testing

  • pnpm -F @videojs/installation test: 308 passed. This includes the contract test that failed on 4f732ff53.

Unblocks #72's CI.

šŸ¤– Generated with Claude Code

https://claude.ai/code/session_01DaH4ihf1LLPqmXShYkvBat


Summary by cubic

Fixes the @videojs/installation workspace contract test failing on CI because it expected every media definition, including simple-moq-video, to be republished by the CDN build, which deliberately excludes that definition until the MoQ engine can report errors.

  • The contract test now skips entries in CDN_EXCLUDED_MEDIA, mirroring cdnMediaExclusions in packages/cdn/vite.config.ts.
  • The CDN config comment now notes the test's exclusion list must be removed along with the exclusion.