Problem
test/serve-static.bats greps for the obsolete literal .js: application/javascript mapping. The implementation now correctly returns application/javascript; charset=utf-8, so the source-text assertion fails even though both executable behavior lanes pass.
Evidence
test/serve-static-unit.bats passes the data-driven contentType() assertion.
test/serve-static-e2e.bats passes the HTTP response header assertion.
- Full
BATS_LIB_PATH=test/vendor bats -t test/*.bats is 110/111; this is the sole failure.
Acceptance
- Replace or remove the brittle source-text grep in favor of observable behavior.
- Keep unit and HTTP end-to-end coverage for the JavaScript content type.
- Full repository Bats is green.
pnpm run preflight remains green.
Found during the five-slice documentation reconstruction drift check; not caused by #747.
Problem
test/serve-static.batsgreps for the obsolete literal.js:application/javascriptmapping. The implementation now correctly returnsapplication/javascript; charset=utf-8, so the source-text assertion fails even though both executable behavior lanes pass.Evidence
test/serve-static-unit.batspasses the data-drivencontentType()assertion.test/serve-static-e2e.batspasses the HTTP response header assertion.BATS_LIB_PATH=test/vendor bats -t test/*.batsis 110/111; this is the sole failure.Acceptance
pnpm run preflightremains green.Found during the five-slice documentation reconstruction drift check; not caused by #747.