[newman] Adding missing fields to NewmanRunFailure. (#41033)

* Adding missing fields to NewmanRunFailure.

* Fixing reviewer issues.

* Fixing test file.
This commit is contained in:
Adam
2019-12-23 11:23:33 -05:00
committed by Andrew Branch
parent c47a34ead1
commit 924bcd457f
2 changed files with 6 additions and 1 deletions

View File

@@ -173,10 +173,14 @@ export interface NewmanRunExecutionAssertionError {
test: string;
message: string;
stack: string;
}export interface NewmanRunFailure {
}
export interface NewmanRunFailure {
error: NewmanRunExecutionAssertionError;
/** The event where the failure occurred */
at: string;
source: NewmanRunExecutionItem | undefined;
parent: any;
cursor: { ref: string } | {};
}
export function run(
options: NewmanRunOptions,

View File

@@ -29,5 +29,6 @@ run(
summary.run; // $ExpectType NewmanRun
summary.run.executions; // $ExpectType NewmanRunExecution[]
summary.run.failures; // $ExpectType NewmanRunFailure[]
summary.run.failures[0].source; // $ExpectType NewmanRunExecutionItem | undefined
}
);