Wednesday, 7 June 2017

Errors appear but Mocha test still passes

I'm receiving errors when running tests but the test still successfully pass.

I get things like:

error: undefined TypeError: Path must be a string. Received undefined ... error: undefined error: table "pzwwizfiqe_44250" does not exist ... error: undefined error: invalid input syntax for integer: "highly_improbable_hash" ...

Those errors are from different tests. Shouldn't Mocha see those as failed tests when there are errors?

I couldn't find a command-line parameter to provide to Mocha in order to stop on this errors. Maybe I misread their description?



via FLC

No comments:

Post a Comment