lodashNPM module within your
$nodeErrorsobject. You can read more about that in the Test a Flow page. You can throw errors as expected by using
throw new Error().