aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sra-report/src/index.ts')
-rw-r--r--packages/sra-report/src/index.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/sra-report/src/index.ts b/packages/sra-report/src/index.ts
index c74b5cb40..4e93708ee 100644
--- a/packages/sra-report/src/index.ts
+++ b/packages/sra-report/src/index.ts
@@ -60,11 +60,6 @@ const mainAsync = async () => {
if (_.isUndefined(firstOrder)) {
throw new Error('Could not get any orders from /orders endpoint');
}
- const newmanEnvironmentOptions = {
- collection: sraReportCollectionJSON,
- globals: postmanEnvironmentFactory.createGlobalEnvironment(args.endpointUrl, firstOrder),
- environment: postmanEnvironmentFactory.createNetworkEnvironment(args.networkId),
- };
const newmanReporterOptions = !_.isUndefined(args.output)
? {
reporters: 'json',
@@ -78,7 +73,8 @@ const mainAsync = async () => {
reporters: 'cli',
};
const newmanRunOptions = {
- ...newmanEnvironmentOptions,
+ collection: sraReportCollectionJSON,
+ environment: postmanEnvironmentFactory.createPostmanEnvironment(args.endpointUrl, args.networkId, firstOrder),
...newmanReporterOptions,
};
await newmanRunAsync(newmanRunOptions);