@testim/testim-cli 3.265.0 → 3.266.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/runners/TestPlanRunner.js +2 -2
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testim/testim-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.266.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@testim/testim-cli",
|
|
9
|
-
"version": "3.
|
|
9
|
+
"version": "3.266.0",
|
|
10
10
|
"license": "Proprietary",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@applitools/eyes-sdk-core": "13.11.21",
|
package/package.json
CHANGED
|
@@ -106,7 +106,7 @@ class TestPlanRunner {
|
|
|
106
106
|
/** @type {Awaited<ReturnType<typeof testimServicesApi['getApplitoolsIntegrationData']>>} */
|
|
107
107
|
let applitoolsIntegrationData;
|
|
108
108
|
try {
|
|
109
|
-
if (!tpOptions.company
|
|
109
|
+
if (!tpOptions.company?.activePlan?.premiumFeatures?.applitools) {
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
112
|
applitoolsIntegrationData = await testimServicesApi.getApplitoolsIntegrationData(tpOptions.project);
|
|
@@ -115,7 +115,7 @@ class TestPlanRunner {
|
|
|
115
115
|
}
|
|
116
116
|
const { runKey: apiKey, url: serverUrl } = applitoolsIntegrationData;
|
|
117
117
|
const tmpSDK = require('@applitools/eyes-sdk-core').makeSDK({ name: 'Testim.io', version: '4.0.0', spec: {} });
|
|
118
|
-
await tmpSDK.
|
|
118
|
+
await tmpSDK.closeBatch({ settings: { batchId: executionId, serverUrl, apiKey } });
|
|
119
119
|
} catch (err) {
|
|
120
120
|
// If a batch with this name did not exist, do not log an error.
|
|
121
121
|
if (err.message && (err.message.startsWith('Request failed with status code 404') || err.message.startsWith('no batchIds were set'))) {
|