@wdio/browserstack-service 8.8.1 → 8.8.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.
@@ -265,8 +265,8 @@ export default class InsightsHandler {
265
265
  scope: fullTitle,
266
266
  scopes: this.getHierarchy(test),
267
267
  identifier: fullTitle,
268
- file_name: filename,
269
- location: filename,
268
+ file_name: filename ? path.relative(process.cwd(), filename) : undefined,
269
+ location: filename ? path.relative(process.cwd(), filename) : undefined,
270
270
  vc_filepath: (this._gitConfigPath && filename) ? path.relative(this._gitConfigPath, filename) : undefined,
271
271
  started_at: testMetaData.startedAt,
272
272
  finished_at: testMetaData.finishedAt,
@@ -335,9 +335,9 @@ export default class InsightsHandler {
335
335
  scope: fullNameWithExamples,
336
336
  scopes: [feature?.name || ''],
337
337
  identifier: scenario?.name,
338
- file_name: feature?.path,
338
+ file_name: feature && feature.path ? path.relative(process.cwd(), feature.path) : undefined,
339
+ location: feature && feature.path ? path.relative(process.cwd(), feature.path) : undefined,
339
340
  vc_filepath: (this._gitConfigPath && feature?.path) ? path.relative(this._gitConfigPath, feature?.path) : undefined,
340
- location: feature?.path,
341
341
  framework: this._framework,
342
342
  result: 'pending',
343
343
  meta: {
@@ -1 +1 @@
1
- {"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AASzC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IAClD,OAAO,CAAC,aAAa,CAAgC;IACrD,OAAO,CAAC,OAAO,CAAC,CAAyC;IACzD,OAAO,CAAC,cAAc,CAAO;IAC7B,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,oBAAoB,CAAoC;IAEhE,aAAa,CAAE,WAAW,EAAE,WAAW;IASvC,YAAY,CAAE,UAAU,EAAE,UAAU;IAI9B,UAAU,CAAE,SAAS,EAAE,SAAS;CAgDzC"}
1
+ {"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AASzC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IAClD,OAAO,CAAC,aAAa,CAAgC;IACrD,OAAO,CAAC,OAAO,CAAC,CAAyC;IACzD,OAAO,CAAC,cAAc,CAAO;IAC7B,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,oBAAoB,CAAoC;IAEhE,aAAa,CAAE,WAAW,EAAE,WAAW;IASvC,YAAY,CAAE,UAAU,EAAE,UAAU;IAI9B,UAAU,CAAE,SAAS,EAAE,SAAS;CAgDzC"}
package/build/reporter.js CHANGED
@@ -1,3 +1,4 @@
1
+ import path from 'node:path';
1
2
  import WDIOReporter from '@wdio/reporter';
2
3
  import { v4 as uuidv4 } from 'uuid';
3
4
  import { getCloudProvider, uploadEventData, getHierarchy } from './util.js';
@@ -35,8 +36,8 @@ export default class TestReporter extends WDIOReporter {
35
36
  scope: testStats.fullTitle,
36
37
  scopes: getHierarchy(testStats.fullTitle),
37
38
  identifier: testStats.fullTitle,
38
- file_name: this._suiteName,
39
- location: this._suiteName,
39
+ file_name: this._suiteName ? path.relative(process.cwd(), this._suiteName) : undefined,
40
+ location: this._suiteName ? path.relative(process.cwd(), this._suiteName) : undefined,
40
41
  started_at: (new Date()).toISOString(),
41
42
  framework: framework,
42
43
  finished_at: (new Date()).toISOString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browserstack-service",
3
- "version": "8.8.1",
3
+ "version": "8.8.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",
@@ -40,7 +40,7 @@
40
40
  "gitconfiglocal": "^2.1.0",
41
41
  "got": "^12.1.0",
42
42
  "uuid": "^8.3.2",
43
- "webdriverio": "8.8.1"
43
+ "webdriverio": "8.8.2"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "9119f9fe5ae85b0c399a58e4e09ca3a824daa305"
54
+ "gitHead": "7adb7f61baef3aaf7d023165089eb8d087b81da4"
55
55
  }