mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
34 lines
820 B
TypeScript
34 lines
820 B
TypeScript
import { EventEmitter } from "events";
|
|
import {
|
|
run,
|
|
NewmanRun,
|
|
NewmanRunExecution,
|
|
NewmanRunExecutionAssertion,
|
|
NewmanRunExecutionAssertionError,
|
|
NewmanRunExecutionItem,
|
|
NewmanRunFailure,
|
|
NewmanRunSummary
|
|
} from "newman";
|
|
import {
|
|
CollectionDefinition,
|
|
VariableScopeDefinition
|
|
} from "postman-collection";
|
|
|
|
const collection: CollectionDefinition = {};
|
|
const environment: VariableScopeDefinition = {};
|
|
const globals: VariableScopeDefinition = {};
|
|
|
|
// $ExpectType EventEmitter
|
|
run(
|
|
{
|
|
collection,
|
|
environment,
|
|
globals
|
|
},
|
|
(err, summary: NewmanRunSummary) => {
|
|
summary.run; // $ExpectType NewmanRun
|
|
summary.run.executions; // $ExpectType NewmanRunExecution[]
|
|
summary.run.failures; // $ExpectType NewmanRunFailure[]
|
|
}
|
|
);
|