
> michael-wave-ori-break-the-matrix@0.2.0 test
> node --test tests/*.test.mjs

✔ sector 1: spawn, enemies, pickups, key, relays and exit occupy reachable space (4.573488ms)
✔ sector 1: mandatory objectives are reachable without a secret wall (1.999871ms)
✔ sector 2: spawn, enemies, pickups, key, relays and exit occupy reachable space (1.176382ms)
✔ sector 2: mandatory objectives are reachable without a secret wall (0.475566ms)
✔ sector 3: spawn, enemies, pickups, key, relays and exit occupy reachable space (0.781958ms)
✔ sector 3: mandatory objectives are reachable without a secret wall (0.527795ms)
✔ raycasting is finite on cardinal axes and respects closed walls (0.36528ms)
✔ collision substeps prevent tunnelling through walls and preserve sliding (2.027934ms)
✔ doors block sight and collision until fully opening (0.473483ms)
✔ E opens faced ordinary door and golden doors require a key (1.559358ms)
✔ opening a secret counts once and does not consume key (0.841578ms)
✔ movement speed is normalized diagonally and frame deltas are bounded (3.137175ms)
✔ shots hit a visible host; liberated hosts count exactly once (2.060423ms)
✔ walls block player weapons and enemy line of sight (0.809539ms)
✔ slap is free and only works in melee range (0.712053ms)
✔ blaster respects cooldown and capacitor costs (0.560424ms)
✔ bass cone hits multiple hosts, stuns and knocks back without wall tunnelling (0.632402ms)
✔ pulse rifle emits a travelling projectile that damages a target (2.485233ms)
✔ disruptor destabilizes multiple targets and unplugger pierces (1.232095ms)
✔ charged alternate fire has a larger cost and damage (0.974348ms)
✔ all six weapons have unique names, fire rates, and energy costs (0.109535ms)
✔ captive rescue requires proximity, restores autonomy, cannot double-count (0.469467ms)
✔ enemies telegraph and damage the player (1.282411ms)
✔ ranged enemies launch readable projectiles (0.963041ms)
✔ Ori follows, auto attacks, and Q stuns with an energy cost (1.751608ms)
✔ Ori Q tags objectives without a nearby hostile (0.534325ms)
✔ resonance vision drains and then recharges (1.461691ms)
✔ R vent restores energy after a delay and respects cooldown (1.06945ms)
✔ bass drop charges from liberation, affects nearby enemies, then empties (0.614786ms)
✔ dodge has a cooldown and brief damage immunity (0.394734ms)
✔ death stops the simulation; retry restores a playable checkpoint (1.106677ms)
✔ checkpoints round trip mutations, doors, player and liberation (1.19543ms)
✔ unsupported or malformed checkpoints are rejected (0.82305ms)
✔ progression requires both relays and a key and unlocks later weapons (0.977842ms)
✔ Warden has three phases and blocks the final ending until defeated (0.736429ms)
✔ key and health pickups update the HUD model and persist progress (1.050142ms)
✔ upgrades from two Φ artifacts increase weapon damage (0.858713ms)
✔ deterministic initial simulation has matching states for matching inputs (16.68465ms)
✔ crawler phases through a thin wall into a valid landing cell (0.592603ms)
✔ browser smoke scenario passes in the same production simulation (33.190799ms)
✔ a dead player cannot replace a valid retry checkpoint (0.761707ms)
✔ v0.1.0 tests remain byte-for-byte unchanged (10.169005ms)
✔ v0.2 sector 1: content reachable and key obtainable before locked doors (4.789854ms)
✔ v0.2 sector 2: content reachable and key obtainable before locked doors (4.263852ms)
✔ v0.2 sector 3: content reachable and key obtainable before locked doors (2.109067ms)
✔ v0.2 sector 4: content reachable and key obtainable before locked doors (3.014179ms)
✔ v0.2 sector 5: content reachable and key obtainable before locked doors (1.498056ms)
✔ v0.2 sector 6: content reachable and key obtainable before locked doors (1.683426ms)
✔ Act II increases encounter count and individual enemy strength (0.914778ms)
✔ original Warden ending offers Act II while final ending cannot advance (1.799701ms)
✔ an actual v0.1.0 checkpoint migrates and retains state (6.379884ms)
✔ a click just before cooldown expiry buffers exactly one shot (1.555212ms)
✔ expired click buffers never fire later (2.602639ms)
✔ wall impacts and hit reactions are emitted without gore (0.69033ms)
✔ Ori assistance has its own visible effect and source attribution (0.878393ms)
✔ danger warnings interrupt banter and remain rate limited (3.495956ms)
✔ Michael and Ori exchange lines in deterministic order (10.121194ms)
✔ movement against a wall produces no footsteps or walking bob (2.165051ms)
✔ navigation route respects golden access gates until a key is held (2.933543ms)
✔ archive signs can be read by facing and interacting (0.718663ms)
✔ fallback keyboard codes work when browser code is absent (0.249966ms)
✔ pointer capture rejects overlapping attempts (0.295495ms)
✔ denied capture switches to fallback without pausing play (0.177037ms)
✔ a capture timeout enables an explicit retry (0.11947ms)
✔ Escape from a real lock pauses; intentional release does not (0.117707ms)
✔ all six sectors clear through traversal, combat and interactions (648.285131ms)
✔ live enemy attacks cause death, and retry permits a complete traversal (117.898832ms)
✔ render-only door rays can see behind an opening panel without changing collision (0.271379ms)
✔ Warden health phases update even while Ori holds a stun (0.529678ms)
✔ default pointer timer adapters clean up a denied request (0.317989ms)
✔ Ori stun prevents crawler phasing until the stun expires (0.552382ms)
ℹ tests 71
ℹ suites 0
ℹ pass 71
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 921.385818
