We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850ceda commit 1c6f126Copy full SHA for 1c6f126
lib/cukejson/cucumberDataCollector.js
@@ -64,7 +64,10 @@ class CucumberDataCollector {
64
65
this.onFail = err => {
66
this.testError = err;
67
- if (err.message.indexOf("Step implementation missing for") > -1) {
+ if (
68
+ err.message &&
69
+ err.message.indexOf("Step implementation missing for") > -1
70
+ ) {
71
this.stepResults[this.currentStep] = {
72
status: statuses.UNDEFINED,
73
duration: this.timeTaken()
0 commit comments