testit-adapter-jest 5.0.3 → 5.0.4-TMS-5.8
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/dist/testitEnvironment.js +13 -1
- package/package.json +2 -2
|
@@ -346,7 +346,19 @@ class TestItEnvironment extends jest_environment_node_1.default {
|
|
|
346
346
|
});
|
|
347
347
|
for (const { autotest, result } of this.realtimeSent) {
|
|
348
348
|
try {
|
|
349
|
-
|
|
349
|
+
const setupSteps = this.buildSetupSteps(autotest);
|
|
350
|
+
const teardownSteps = this.buildTeardownSteps(autotest, true);
|
|
351
|
+
if (setupSteps.length === 0 && teardownSteps.length === 0) {
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
await this.strategy.updateSetupTeardown([
|
|
355
|
+
{
|
|
356
|
+
autoTestExternalId: autotest.externalId,
|
|
357
|
+
outcome: result.outcome,
|
|
358
|
+
setupResults: setupSteps,
|
|
359
|
+
teardownResults: teardownSteps,
|
|
360
|
+
},
|
|
361
|
+
]);
|
|
350
362
|
}
|
|
351
363
|
catch (err) {
|
|
352
364
|
testit_js_commons_2.logger.error("Failed realtime teardown flush in Jest environment:", this.formatError(err));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testit-adapter-jest",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4-TMS-5.8",
|
|
4
4
|
"description": "Jest adapter for Test IT",
|
|
5
5
|
"main": "dist/testitEnvironment.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"debug": "^4.3.4",
|
|
19
|
-
"testit-js-commons": "5.0.
|
|
19
|
+
"testit-js-commons": "5.0.4-TMS-5.8"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/debug": "^4.1.7",
|