mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
[newman] Adding missing fields to NewmanRunFailure. (#41033)
* Adding missing fields to NewmanRunFailure. * Fixing reviewer issues. * Fixing test file.
This commit is contained in:
6
types/newman/index.d.ts
vendored
6
types/newman/index.d.ts
vendored
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user