@travetto/test
Advanced tools
Comparing version 0.0.56 to 0.0.57
@@ -30,3 +30,3 @@ { | ||
}, | ||
"version": "0.0.56" | ||
"version": "0.0.57" | ||
} |
@@ -8,10 +8,11 @@ import { TestEvent, EventPhase, EventEntity } from '../model'; | ||
onEvent(event: TestEvent) { | ||
if (event.phase === 'after') { | ||
if (event.type === 'test') { | ||
if (event.test.error) { | ||
event.test.error = serializeError(event.test.error); | ||
const out = { ...event }; | ||
if (out.phase === 'after') { | ||
if (out.type === 'test') { | ||
if (out.test.error) { | ||
out.test.error = serializeError(out.test.error); | ||
} | ||
} else if (event.type === 'assertion') { | ||
if (event.assertion.error) { | ||
event.assertion.error = serializeError(event.assertion.error); | ||
} else if (out.type === 'assertion') { | ||
if (out.assertion.error) { | ||
out.assertion.error = serializeError(out.assertion.error); | ||
} | ||
@@ -21,4 +22,4 @@ } | ||
this.send(event.type, event); | ||
this.send(event.type, out); | ||
} | ||
} |
@@ -349,3 +349,5 @@ import * as fs from 'fs'; | ||
for (const suite of suites) { | ||
await this.executeSuite(consumer, suite); | ||
if (suite.tests.length) { | ||
await this.executeSuite(consumer, suite); | ||
} | ||
} | ||
@@ -352,0 +354,0 @@ } else { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49396
1394