Scenario
- Use
typecheck to validate a model at runtime (with NODE_ENV=production)
- Cause an exception in that check using invalid data
Expected
Error is thrown by MST, so that I can catch it a level above, but no console.error gets logged in production.
Actual
Error is thrown by MST, console.error gets logged.
Do we really want to log console errors in production?
Scenario
typecheckto validate a model at runtime (withNODE_ENV=production)Expected
Error is thrown by MST, so that I can catch it a level above, but no console.error gets logged in production.
Actual
Error is thrown by MST, console.error gets logged.
Do we really want to log console errors in production?