Skip to content

chore(test): pnpm test makes the vendored copies first - #662

Merged
Nawid3333 merged 1 commit into
mainfrom
chore/test-sync-vendor-first
Nov 9, 2026
Merged

Nawid3333 merged 1 commit into
mainfrom
chore/test-sync-vendor-first

Conversation

@Nawid3333

Copy link
Copy Markdown
Owner

pnpm test now runs tools/sync-vendor.mjs (0.14 s) before vitest run.

Why: pnpm run verify runs the unit tests before build:keep, and only the build refreshed the git-ignored vendored copies (hls.mjs, mp4box, dash.mjs...). vitest.config.mjs is meant to point those imports at the npm builds, but in the main checkout its resolveId was not called at all (probed 2026-11-09). So right after today's dependency updates, the local verify ran the unit tests on the old hls.mjs, and 31 failed in hls2mp4 until a build refreshed it. CI and fresh worktrees were not affected.

Checked: in a fresh worktree with no copies, pnpm test made them and then ran 3491 tests, all passing; lint and typecheck clean. The two comments that described the old order are updated.

🤖 Generated with Claude Code

pnpm run verify runs the unit tests before the build, and only the build ran
tools/sync-vendor.mjs. vitest.config.mjs points the vendored imports at the
npm builds, but in one local checkout that redirect was not called: right
after the dependency updates the unit tests ran on the old hls.mjs and 31
failed (hls2mp4) until a build had refreshed it. sync-vendor takes 0.14 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Nawid3333
Nawid3333 merged commit 5bb91de into main Nov 9, 2026
23 checks passed
@Nawid3333
Nawid3333 deleted the chore/test-sync-vendor-first branch November 9, 2026 23:37
@github-actions github-actions Bot mentioned this pull request Nov 10, 2026
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