Jasmine doesn't do anything if we call done(err) so it needs to be notified by done.fail(err) instead.
This problem stops any errors in the javascript from being correctly identified and failing a test.
This is easily reproducible in the jasmine example by throwing an error in any step. Jasmine differs from mocha in that it will ignore if the error is passed back through that callback so we have to be more explicit.
I've tested this in our application and it fixes the issue and errors correctly bubble up and fail the build.
Jasmine doesn't do anything if we call done(err) so it needs to be notified by done.fail(err) instead.
This problem stops any errors in the javascript from being correctly identified and failing a test.
This is easily reproducible in the jasmine example by throwing an error in any step. Jasmine differs from mocha in that it will ignore if the error is passed back through that callback so we have to be more explicit.
I've tested this in our application and it fixes the issue and errors correctly bubble up and fail the build.