@wdio/browserstack-service 7.30.2 → 7.30.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insights-handler.d.ts","sourceRoot":"","sources":["../src/insights-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGzE,OAAO,KAAK,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAOtE,MAAM,CAAC,OAAO,OAAO,eAAe;IASnB,OAAO,CAAC,QAAQ;IAAwI,OAAO,CAAC,UAAU,CAAC;IAPxL,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,SAAS,CAA2D;IAC5E,OAAO,CAAC,cAAc,CAAC,CAAQ;IAC/B,OAAO,CAAC,oBAAoB,CAAoC;gBAE3C,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,EAAE,YAAY,CAAC,YAAY,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,EAAU,UAAU,CAAC,oBAAQ;IAa1L,MAAM;IAWN,UAAU,CAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"insights-handler.d.ts","sourceRoot":"","sources":["../src/insights-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAA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AAE,UAAU,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,YAAY;IAgCzF,aAAa,CACf,WAAW,SAA2C,EACtD,YAAY,SAA4C;IAUtD,QAAQ;IAId;;OAEG;IAEG,cAAc,CAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,gBAAgB,EAAE,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG,sBAAsB;IA2DtI,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,YAAY;YAYN,gBAAgB;YAuEhB,2BAA2B;IAsFzC,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,aAAa;CAMxB"}
|
|
@@ -36,28 +36,30 @@ class InsightsHandler {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
async beforeHook(test, context) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
uuid: hookId,
|
|
43
|
-
startedAt: (new Date()).toISOString()
|
|
44
|
-
};
|
|
45
|
-
this.attachHookData(context, hookId);
|
|
46
|
-
if (this._framework == 'mocha')
|
|
47
|
-
await this.sendTestRunEvent(test, 'HookRunStarted');
|
|
48
|
-
}
|
|
49
|
-
async afterHook(test, result) {
|
|
50
|
-
const fullTitle = (0, util_1.getUniqueIdentifier)(test);
|
|
51
|
-
if (this._tests[fullTitle]) {
|
|
52
|
-
this._tests[fullTitle].finishedAt = (new Date()).toISOString();
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
39
|
+
if (this._framework == 'mocha') {
|
|
40
|
+
const fullTitle = `${test.parent} - ${test.title}`;
|
|
41
|
+
const hookId = (0, uuid_1.v4)();
|
|
55
42
|
this._tests[fullTitle] = {
|
|
56
|
-
|
|
43
|
+
uuid: hookId,
|
|
44
|
+
startedAt: (new Date()).toISOString()
|
|
57
45
|
};
|
|
46
|
+
this.attachHookData(context, hookId);
|
|
47
|
+
await this.sendTestRunEvent(test, 'HookRunStarted');
|
|
58
48
|
}
|
|
59
|
-
|
|
49
|
+
}
|
|
50
|
+
async afterHook(test, result) {
|
|
51
|
+
if (this._framework == 'mocha') {
|
|
52
|
+
const fullTitle = (0, util_1.getUniqueIdentifier)(test);
|
|
53
|
+
if (this._tests[fullTitle]) {
|
|
54
|
+
this._tests[fullTitle].finishedAt = (new Date()).toISOString();
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this._tests[fullTitle] = {
|
|
58
|
+
finishedAt: (new Date()).toISOString()
|
|
59
|
+
};
|
|
60
|
+
}
|
|
60
61
|
await this.sendTestRunEvent(test, 'HookRunFinished', result);
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
64
|
async beforeTest(test) {
|
|
63
65
|
const fullTitle = (0, util_1.getUniqueIdentifier)(test);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browserstack-service",
|
|
3
|
-
"version": "7.30.
|
|
3
|
+
"version": "7.30.3",
|
|
4
4
|
"description": "WebdriverIO service for better Browserstack integration",
|
|
5
5
|
"author": "Adam Bjerstedt <abjerstedt@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browserstack-service",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"types": "./build/index.d.ts",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "cdc92da66a3cd9ab3ce5c6333ec2ab9541313a9d"
|
|
46
46
|
}
|