Skip to content

test: pin the URLs each asset container resolves, in build and hot - #484

Merged
ogorzalka merged 1 commit into
release/v13.36.1from
test/assets-golden
Oct 15, 2026
Merged

ogorzalka merged 1 commit into
release/v13.36.1from
test/assets-golden

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

First step of pollora/assets (plan: .claude/plans/assets-package.md): a contract test written before the extraction, so it can only break if behaviour changes.

Real containers (theme, plugin, module, root, {parent}.blocks), real ViteManager, manifests and hot files under public/. Pins: container names and config (hot file, build dir, manifest, base path = the layout @pollora/vite-config builds to), build URLs (js + css, base path, blocks container with empty base path), three dev servers at once with one container left on its build, Vite client per server, missing build, unknown container.

Checked by mutation: a wrong base path (5 failures) and no clone of Laravel's Vite singleton (6 failures) are caught. 13 tests, 37 assertions. The two failures left in this area (MissingBuildNotice in ddev, ModuleViewPathsTest in a full run) fail without this file too.

Companion: .claude/plans/assets-golden (rendered HTML of pollora-test, build and hot) for the before/after diff.

@ogorzalka ogorzalka closed this Oct 15, 2026
@ogorzalka
ogorzalka deleted the test/assets-golden branch October 15, 2026 07:19
@ogorzalka ogorzalka reopened this Oct 15, 2026
@ogorzalka
ogorzalka merged commit 424cabe into release/v13.36.1 Oct 15, 2026
26 of 28 checks passed
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