@stanterprise/playwright-reporter 0.0.7 → 0.0.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.
@@ -36,7 +36,7 @@ function handleOnEndEvent(result, runId, client, options) {
36
36
  start_time: (0, utils_1.createTimestampFromMs)(validStartTimeMs),
37
37
  duration: (0, utils_1.createDuration)(validDuration),
38
38
  });
39
- (0, grpcClient_1.reportUnary)(options, client, "/testsystem.v1.observer.TestEventCollector/ReportEnd", request, options.grpcTimeout).catch((error) => {
39
+ (0, grpcClient_1.reportUnary)(options, client, "/testsystem.v1.observer.TestEventCollector/ReportRunEnd", request, options.grpcTimeout).catch((error) => {
40
40
  if (error instanceof Error) {
41
41
  console.error(`Failed to report end event: ${error.message}`, {
42
42
  stack: error.stack,
@@ -19,7 +19,7 @@ function createTimestamp(date) {
19
19
  }
20
20
  return new Timestamp({
21
21
  seconds: Math.floor(ms / 1000),
22
- nanos: (ms % 1000) * 1000000,
22
+ nanos: Math.floor((ms % 1000) * 1000000),
23
23
  });
24
24
  }
25
25
  /**
@@ -32,7 +32,7 @@ function createTimestampFromMs(ms) {
32
32
  }
33
33
  return new Timestamp({
34
34
  seconds: Math.floor(ms / 1000),
35
- nanos: (ms % 1000) * 1000000,
35
+ nanos: Math.floor((ms % 1000) * 1000000),
36
36
  });
37
37
  }
38
38
  /**
@@ -56,6 +56,6 @@ function createDuration(durationMs) {
56
56
  }
57
57
  return new Timestamp({
58
58
  seconds: Math.floor(durationMs / 1000),
59
- nanos: (durationMs % 1000) * 1000000,
59
+ nanos: Math.floor((durationMs % 1000) * 1000000),
60
60
  });
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stanterprise/playwright-reporter",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Custom Playwright test reporter that sends test results to Stanterprise via gRPC",
5
5
  "homepage": "https://github.com/stanterprise/stanterprise-playwright-reporter#readme",
6
6
  "bugs": {