npm warn Unknown env config "http-proxy". This will stop working in the next major version of npm.

 RUN  v3.2.7 /workspace/sites/valoprac-upgrade

 ✓ src/tests/storage-statistics.test.ts > Settings persistence and invalid input handling > persists and restores sensitivity, crosshair, and graphics settings 3ms
 ✓ src/tests/storage-statistics.test.ts > Settings persistence and invalid input handling > recovers from malformed JSON or unavailable storage 1ms
 ✓ src/tests/storage-statistics.test.ts > Settings persistence and invalid input handling > sanitizes non-finite and out-of-range settings 1ms
 ✓ src/tests/storage-statistics.test.ts > Training statistics correctness > handles empty sessions without NaN or fabricated successes 1ms
 ✓ src/tests/storage-statistics.test.ts > Training statistics correctness > calculates headshots, body frequency, first-shot accuracy and miss rate 21ms
 ✓ src/tests/storage-statistics.test.ts > Training statistics correctness > keeps neutral and opposite-input braking samples separate 14ms
 ✓ src/tests/storage-statistics.test.ts > Training statistics correctness > calculates actual spray center, extents and radial error 3ms
 ✓ src/tests/storage-statistics.test.ts > IndexedDB transaction behavior and bounded retention (fake-indexeddb) > saves and reads a complete detailed training session 13ms
 ✓ src/tests/audio-lifecycle.test.ts > Web Audio event and cleanup contracts (mock AudioContext, not acoustic/browser verification) > emits one firing event for one simulation shot, reuses buffers and stops all previous-weapon voices 68ms
 ✓ src/tests/audio-lifecycle.test.ts > Web Audio event and cleanup contracts (mock AudioContext, not acoustic/browser verification) > restores authorized local sound files independently of weapon gameplay data 27ms
 ✓ src/tests/audio-lifecycle.test.ts > Web Audio event and cleanup contracts (mock AudioContext, not acoustic/browser verification) > rejects oversized or unsupported files before decoding or saving 2ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > rifleA: independent cadence, capacity, reload, ADS 2ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > rifleA: reload observes full duration and finite reserve 1ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > rifleB: independent cadence, capacity, reload, ADS 2ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > rifleB: reload observes full duration and finite reserve 0ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > sheriff: independent cadence, capacity, reload, ADS 0ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > sheriff: reload observes full duration and finite reserve 0ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > rifleA hip cadence follows the rate lattice 1ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > rifleA ADS cadence follows the rate lattice 0ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > rifleB hip cadence follows the rate lattice 1ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > rifleB ADS cadence follows the rate lattice 1ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > Sheriff hold is one shot; released-and-pressed edges respect the four Hz maximum 2ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > a short Sheriff click between simulation ticks is not lost or repeated 0ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > Sheriff rapid taps accumulate more bloom than patient taps 3ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > damage bands and limb classification respect configured distance 0ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > 1.25x magnification divides the projection tangent instead of scaling the model 0ms
 ✓ src/tests/upgrade.test.ts > Version 2 distinct weapon specifications > equip time and reload cancellation cannot bypass a magazine 17ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > rifleA protects early bullets and gates side changes by time 13ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > rifleB protects early bullets and gates side changes by time 1ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > rifles have different recoil climb and recover smoothly without aim rewrite 0ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > movement key release does not immediately restore stationary accuracy; crouch-moving and air retain error 30ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > ADS changes speed and sensitivity only for supported weapons 32ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > eliminates a target only on an actual head intersection 13ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > gives torso feedback but leaves the target alive 8ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > respawns pooled targets after a headshot 17ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > records a full per-shot movement, spread, recoil and target snapshot 4ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > captures premature braking shots and fills their actual threshold timing later 8ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > keeps deliberate mouse movement after recoil recovery 29ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > clamps vertical rotation and converts mouse counts without smoothing 3ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > runs and ends the precision mode on simulation time 79ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > weapon switching, ADS and semi-auto input reproduce at 30 render Hz 63ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > weapon switching, ADS and semi-auto input reproduce at 60 render Hz 39ms
 ✓ src/tests/upgrade-collision.test.ts > Scaled animated target geometry and bounded cover peeking > preserves actual animated head collisions at scale 0.5 11ms
 ✓ src/tests/upgrade-collision.test.ts > Scaled animated target geometry and bounded cover peeking > preserves actual animated head collisions at scale 1 3ms
 ✓ src/tests/upgrade-collision.test.ts > Scaled animated target geometry and bounded cover peeking > preserves actual animated head collisions at scale 2 1ms
 ✓ src/tests/upgrade-collision.test.ts > Scaled animated target geometry and bounded cover peeking > does not stack multiple free-practice targets at the same cover position 6ms
 ✓ src/tests/upgrade-collision.test.ts > Scaled animated target geometry and bounded cover peeking > sanitizes duplicate and reserved bindings to a usable unique set 2ms
 ✓ src/tests/upgrade-collision.test.ts > Scaled animated target geometry and bounded cover peeking > keeps settings changes out of shared defaults and the stored preferences object 5ms
 ✓ src/tests/upgrade-collision.test.ts > Scaled animated target geometry and bounded cover peeking > preserves lifetime kills, hits and first shots after detail pruning 236ms
 ✓ src/tests/upgrade-collision.test.ts > Integrated braking classification and optional cumulative damage > classifies an early neutral shot by a subsequent opposite input in the same braking episode 11ms
 ✓ src/tests/upgrade-collision.test.ts > Integrated braking classification and optional cumulative damage > accumulates configured body damage without weakening head-only timed modes 7ms
 ✓ src/tests/storage-statistics.test.ts > IndexedDB transaction behavior and bounded retention (fake-indexeddb) > limits retained sessions and removes old details while preserving summaries 234ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > runs and ends the braking mode on simulation time 42ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > runs and ends the spray mode on simulation time 30ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > runs and ends the tracking mode on simulation time 79ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > weapon switching, ADS and semi-auto input reproduce at 144 render Hz 41ms
 ✓ src/tests/upgrade.test.ts > Stateful recoil and independent spread > weapon switching, ADS and semi-auto input reproduce at 240 render Hz 36ms
 ✓ src/tests/upgrade.test.ts > Free practice target configuration, scoring and retention > pooled target count, transforms, movement and respawn settings change within the same session 8ms
 ✓ src/tests/upgrade.test.ts > Free practice target configuration, scoring and retention > random appearance recycles the same target instead of creating new rigs 4ms
 ✓ src/tests/upgrade.test.ts > Free practice target configuration, scoring and retention > head-only remains the default and optional any-hit elimination works 9ms
 ✓ src/tests/upgrade.test.ts > Free practice target configuration, scoring and retention > the analysis wall does not add fake headshots or affect trajectories 3ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > supports six behavior profiles without stacking cover-peeking targets 26ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > samples tracking from a real head ray and records reacquisition delay 1ms
 ✓ src/tests/simulation.test.ts > Integrated headshot-only shooting and session behavior > pauses without advancing gameplay or firing 1ms
 ✓ src/tests/simulation.test.ts > Full deterministic gameplay at different render rates > reproduces movement, recoil, spread, impacts and target motion at 30 Hz 23ms
 ✓ src/tests/simulation.test.ts > Full deterministic gameplay at different render rates > reproduces movement, recoil, spread, impacts and target motion at 60 Hz 19ms
 ✓ src/tests/simulation.test.ts > Full deterministic gameplay at different render rates > reproduces movement, recoil, spread, impacts and target motion at 144 Hz 26ms
 ✓ src/tests/simulation.test.ts > Full deterministic gameplay at different render rates > reproduces movement, recoil, spread, impacts and target motion at 240 Hz 17ms
 ✓ src/tests/simulation.test.ts > Tracking accuracy boundaries > counts looking away as tracking error 1ms
 ✓ src/tests/simulation.test.ts > Tracking accuracy boundaries > does not score an occluded head as tracked 2ms
 ✓ src/tests/ui.test.tsx > Korean React screen rendering (server markup, not browser QA) > renders free practice and four timed training modes and the start control 36ms
 ✓ src/tests/ui.test.tsx > Korean React screen rendering (server markup, not browser QA) > renders sensitivity, crosshair and graphic settings 17ms
 ✓ src/tests/ui.test.tsx > Korean React screen rendering (server markup, not browser QA) > renders the empty history screen without fake records 2ms
 ✓ src/tests/ui.test.tsx > Korean React screen rendering (server markup, not browser QA) > renders precision results including zero-shot sessions 12ms
 ✓ src/tests/ui.test.tsx > Korean React screen rendering (server markup, not browser QA) > renders braking results including zero-shot sessions 5ms
 ✓ src/tests/ui.test.tsx > Korean React screen rendering (server markup, not browser QA) > renders spray results including zero-shot sessions 8ms
 ✓ src/tests/ui.test.tsx > Korean React screen rendering (server markup, not browser QA) > renders tracking results including zero-shot sessions 7ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > accelerates progressively and respects the provisional speed cap 2ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > retains velocity after release and stops through velocity-dependent deceleration 3ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > reverses smoothly through zero instead of instantly changing sign 1ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > normalizes diagonal input 1ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > applies walk, crouch, and backward modifiers 2ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > jumps, limits air control, and lands without sinking into the floor 1ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > stops at environment walls and cannot tunnel through cover 4ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > detects release and threshold crossing and records the initial speed 4ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > distinguishes direct reversal from neutral stopping 0ms
 ✓ src/tests/movement.test.ts > Acceleration, inertia, friction, and direction reversal > predicts neutral readiness within one fixed tick 0ms
 ✓ src/tests/movement.test.ts > Fixed-step determinism across independent render schedules > matches 120 Hz simulation when rendering at 30 Hz 2ms
 ✓ src/tests/movement.test.ts > Fixed-step determinism across independent render schedules > matches 120 Hz simulation when rendering at 60 Hz 1ms
 ✓ src/tests/movement.test.ts > Fixed-step determinism across independent render schedules > matches 120 Hz simulation when rendering at 75 Hz 1ms
 ✓ src/tests/movement.test.ts > Fixed-step determinism across independent render schedules > matches 120 Hz simulation when rendering at 144 Hz 2ms
 ✓ src/tests/movement.test.ts > Fixed-step determinism across independent render schedules > matches 120 Hz simulation when rendering at 240 Hz 1ms
 ✓ src/tests/movement.test.ts > Fixed-step determinism across independent render schedules > preserves simulation time during irregular frame drops 1ms
 ✓ src/tests/movement.test.ts > Fixed-step determinism across independent render schedules > retains excess time debt rather than silently discarding it 0ms
 ✓ src/tests/movement.test.ts > Independent braking measurements > records full neutral stop later than the accuracy threshold 0ms
 ✓ src/tests/movement.test.ts > Independent braking measurements > does not treat a camera turn as a movement key release 0ms
 ✓ src/tests/movement.test.ts > Independent braking measurements > records zero crossing during reversal even if no tick has exactly zero speed 0ms
 ✓ src/tests/input.test.ts > Browser input event contracts (mock events, real pointer lock still requires desktop QA) > preserves short clicks and clears held keys/ADS/presses on blur and cleanup 13ms
 ✓ src/tests/input.test.ts > Browser input event contracts (mock events, real pointer lock still requires desktop QA) > supports toggle ADS, custom movement keys and the weapon menu 10ms
 ✓ src/tests/input.test.ts > Browser input event contracts (mock events, real pointer lock still requires desktop QA) > uses reserved numeric shortcuts for weapon switching and clears firing state 10ms
 ✓ src/tests/input.test.ts > Browser input event contracts (mock events, real pointer lock still requires desktop QA) > requests unadjusted relative input and retries the standard API when unsupported 4ms
 ✓ src/tests/input.test.ts > Browser input event contracts (mock events, real pointer lock still requires desktop QA) > reports missing pointer-lock support in Korean without throwing 3ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > classifies the head sphere before the torso below it 4ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > classifies torso and leg shots without labeling them as heads 1ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > classifies an arm independently 1ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > does not count the empty corners of a head bounding square 1ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > keeps the head collider attached during crouch and strafe animations 8ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > matches an arm after a joint rotation in world space 1ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > blocks a target behind real cover and allows a lateral peek 2ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > selects the nearest target and ignores eliminated targets 1ms
 ✓ src/tests/collision.test.ts > Exact 3D head, torso, limb and environment hit detection > does not confuse horizontal view position with a headshot 1ms
 ✓ src/tests/weapons.test.ts > Spread and recoil > increases spread as movement speed exceeds the accuracy threshold 2ms
 ✓ src/tests/weapons.test.ts > Spread and recoil > applies crouch, airborne, landing, ADS and consecutive-shot contributions separately 1ms
 ✓ src/tests/weapons.test.ts > Spread and recoil > reproduces identical spread samples from a fixed seed 3ms
 ✓ src/tests/weapons.test.ts > Spread and recoil > produces distinct sequences for different seeds 1ms
 ✓ src/tests/weapons.test.ts > Spread and recoil > accumulates pattern-based vertical and horizontal recoil 1ms
 ✓ src/tests/weapons.test.ts > Spread and recoil > recovers continuously only after the configured delay 0ms
 ✓ src/tests/weapons.test.ts > Spread and recoil > consumes player compensation without reintroducing compensated recoil 0ms
 ✓ src/tests/weapons.test.ts > Fire-rate lattice, ammunition, reload and burst reset > enforces the rifleA fire rate 2ms
 ✓ src/tests/weapons.test.ts > Fire-rate lattice, ammunition, reload and burst reset > enforces the rifleB fire rate 1ms
 ✓ src/tests/weapons.test.ts > Fire-rate lattice, ammunition, reload and burst reset > stops on an empty magazine, blocks fire during reload, then refills 1ms
 ✓ src/tests/weapons.test.ts > Fire-rate lattice, ammunition, reload and burst reset > prevents reloading a full magazine and double-starting reload 0ms
 ✓ src/tests/weapons.test.ts > Fire-rate lattice, ammunition, reload and burst reset > resets the shot index and bloom after a pause 0ms
 ✓ src/tests/weapons.test.ts > Fire-rate lattice, ammunition, reload and burst reset > does not issue a catch-up burst after the trigger was released 0ms
 ✓ src/tests/navigation.test.ts > Production SPA route restoration > restores the training start screen from a direct training URL 1ms
 ✓ src/tests/navigation.test.ts > Production SPA route restoration > restores settings and statistics after refresh 0ms
 ✓ src/tests/navigation.test.ts > Production SPA route restoration > returns to a usable menu when a result has no in-memory session 0ms
stdout | src/tests/performance.test.ts > executes a ten-minute engine-only workload without invalid state (not a WebGL/FPS benchmark)
{"benchmark":"engine-only","simulationSeconds":600,"fixedTicks":72000,"targets":4,"shots":1973,"elapsedMilliseconds":1043,"ticksPerSecond":69000,"webglTested":false}

 ✓ src/tests/performance.test.ts > executes a ten-minute engine-only workload without invalid state (not a WebGL/FPS benchmark) 1049ms
stdout | src/tests/upgrade.test.ts > Free practice target configuration, scoring and retention > runs one hour of unlimited engine time with bounded detail and correct lifetime counters
{"benchmark":"free-engine-only","simulationSeconds":3600,"totalShots":20972,"retainedShots":2028,"gpuTested":false}

 ✓ src/tests/upgrade.test.ts > Free practice target configuration, scoring and retention > statistics reset leaves time, weapon and magazine state intact 9ms
 ✓ src/tests/upgrade.test.ts > Free practice target configuration, scoring and retention > online totals match complete-session statistics for all core metrics 15ms
 ✓ src/tests/upgrade.test.ts > Free practice target configuration, scoring and retention > runs one hour of unlimited engine time with bounded detail and correct lifetime counters 729ms
 ✓ src/tests/upgrade.test.ts > Audio sources, synthesis and graphics data validation > keeps requested references exact and never labels generated audio as Riot recordings 0ms
 ✓ src/tests/upgrade.test.ts > Audio sources, synthesis and graphics data validation > produces distinct, bounded and reproducible preloaded signals for every weapon/action 219ms
 ✓ src/tests/upgrade.test.ts > Audio sources, synthesis and graphics data validation > builds distinct original 3D weapon assemblies with valid bounded geometry and movable cylinder 113ms
 ✓ src/tests/upgrade.test.ts > Audio sources, synthesis and graphics data validation > persists new controls, quality, ADS and free-practice preferences alongside old settings 1ms
 ✓ src/tests/upgrade.test.ts > Audio sources, synthesis and graphics data validation > low quality preset produces valid independent settings 0ms
 ✓ src/tests/upgrade.test.ts > Audio sources, synthesis and graphics data validation > medium quality preset produces valid independent settings 0ms
 ✓ src/tests/upgrade.test.ts > Audio sources, synthesis and graphics data validation > high quality preset produces valid independent settings 0ms
 ✓ src/tests/upgrade.test.ts > Audio sources, synthesis and graphics data validation > ultra quality preset produces valid independent settings 0ms

 Test Files  12 passed (12)
      Tests  139 passed (139)
   Start at  09:18:42
   Duration  1.95s (transform 1.13s, setup 0ms, collect 2.63s, tests 3.76s, environment 2ms, prepare 920ms)

JSON report written to /workspace/sites/valoprac-upgrade/docs/test-results.json
