import assert from 'node:assert/strict';import {test} from 'node:test';import {readFile} from 'node:fs/promises'; const main=await readFile(new URL('../src/main.ts',import.meta.url),'utf8'); test('scene sizing aligns corner camera with the actual fixed courtyard door',()=>{ assert.match(main,/peekingLayout\(camera\.aspect,aspect\)/); assert.match(main,/cameraController\.setRoomBounds\(frameW,frameH,uniforms\.uGlassZ\.value\)/); assert.match(main,/houseSurround\.resize\([^;]*peeking\.clearanceScale/); }); test('experimental renderer shares one B courtyard and never switches active depth RGB to cutout',()=>{ assert.match(main,/meshRenderer\.syncCourtyard\(isPeekingScene\(\)\?courtyard:null\)/); assert.match(main,/const sourceImage = active\.image;/); assert.match(main,/initPeekingExperimentUI/); assert.match(main,/pendingCutout/); assert.match(main,/peekingGrid\.setOpen\(effective\)/); }); test('experimental No Glass retains alpha-aware post-pass depth seed',()=>{assert.match(main,/housePhotoDepth\.sync\([^;]*mode==='noglass'&&depthUniforms\.uUsePhotoAlpha\?\.value/);});