You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some snapshot tests run into issues on older versions of Node because of minor changes to the Math implementations.
My solution so far is to round off all the values in snapshotted matrices that cause problems. But doing all the rounding takes far longer than the rest of the test put together.
Maybe the solution is not to snapshot these matrices, or maybe there is a faster way to round numbers than converting to a string and back with Number(num.toFixed(decimals)).
See RadialBasisFunction.spec.ts and GaussianKernel.spec.ts - these both fail on Node 10.X without the rounding workaround.
The text was updated successfully, but these errors were encountered:
Some snapshot tests run into issues on older versions of Node because of minor changes to the
Math
implementations.My solution so far is to round off all the values in snapshotted matrices that cause problems. But doing all the rounding takes far longer than the rest of the test put together.
Maybe the solution is not to snapshot these matrices, or maybe there is a faster way to round numbers than converting to a string and back with
Number(num.toFixed(decimals))
.See
RadialBasisFunction.spec.ts
andGaussianKernel.spec.ts
- these both fail on Node 10.X without the rounding workaround.The text was updated successfully, but these errors were encountered: