This is a nice idea, but so far the hassle doesn't seem to be worth the gain. It looks like WebAssembly doesn't work (run) inside the headless browser because the value is 100. The value is also 100 in Edge on my pc where WebAssembly also doesn't work.
Also note that testing the Javascript side is not so important. Bugs are way easier to spot than at the math side. So as long as the math is correct (and tested) and the correct function calls are connected to the correct cases in the front end, then all should be fine.
This is a nice idea, but so far the hassle doesn't seem to be worth the gain. It looks like WebAssembly doesn't work (run) inside the headless browser because the value is 100. The value is also 100 in Edge on my pc where WebAssembly also doesn't work.
Also note that testing the Javascript side is not so important. Bugs are way easier to spot than at the math side. So as long as the math is correct (and tested) and the correct function calls are connected to the correct cases in the front end, then all should be fine.