Skip to content

Commit

Permalink
Fix obscure edge case when this.results is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 19, 2018
1 parent 13073a7 commit b727234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Spawn extends Base {
this.options.signal = signal

// spawn closing with no tests is treated as a skip.
if (this.results.plan && this.results.plan.skipAll && !code && !signal)
if (this.results && this.results.plan && this.results.plan.skipAll && !code && !signal)
this.options.skip = this.results.plan.skipReason || true

if (code || signal) {
Expand Down

0 comments on commit b727234

Please sign in to comment.