Structural Bridge
expect().toBe() assertions
=
Loss function
All Themes // Bridge #3
The connection
Both measure the gap between actual and expected output. A test assertion checks actual === expected; a loss function computes the distance between predictions and labels. Both quantify “how wrong” and drive corrections.
Why "Structural"?
Structural bridges share the same architecture or pattern, even though the domains differ.