Skip to content

Commit 18ad427

Browse files
chaxusclaude
andcommitted
test: hosting-contract tolerates vendor _headers rules without Cache-Control
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 47188b8 commit 18ad427

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/unit/hosting-contract.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('public/_headers', () => {
5151
it('does not make patched vendor trees immutable (x2t_helper.js and editor HTML must revalidate)', () => {
5252
for (const p of Object.keys(rules)) {
5353
if (/^\/(sdkjs|web-apps)\/\*$/.test(p) || p === '/sdkjs/*' || p === '/web-apps/*') {
54-
expect(cc(p)).not.toMatch(/immutable/);
54+
expect(cc(p) ?? '').not.toMatch(/immutable/);
5555
}
5656
}
5757
expect(Object.keys(rules).some((p) => p.startsWith('/sdkjs/common/wasm/x2t/x2t_helper'))).toBe(false);

0 commit comments

Comments
 (0)