Introduce a way to distinguish if the comparison was successful or not to the results object.
Use case
const result = await playAudit({
...,
ignoreError: true
})
// do something with the results object
// finally, fail the test in case of any error
if (result.comparisonError) {
throw new Error(comparisonError)
}
This is very helpful because I can use result object data in case of both failure and success and don't have to perform comparison by myself one more extra time.
Introduce a way to distinguish if the comparison was successful or not to the
results
object.Use case
This is very helpful because I can use
result
object data in case of both failure and success and don't have to perform comparison by myself one more extra time.