@alwaysmeticulous/sdk-bundles-api 2.176.0 → 2.178.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/dist/index.d.ts CHANGED
@@ -4,8 +4,10 @@ export * from "./record/middleware";
4
4
  export { ReplayAndStoreResultsOptions, ReplayTarget, SnapshottedAssetsReplayTarget, URLReplayTarget, OriginalRecordedURLReplayTarget, ReplayExecutionOptions, ReplayOrchestratorScreenshottingOptions, GeneratedBy, GeneratedByNotebookRun, GeneratedByTestRun, GeneratedByReplayCommand, ScreenshotComparisonOptions, ScreenshotComparisonEnabledOptions, CompareScreenshotsTo, CompareScreenshotsToSpecificReplay, CompareScreenshotsToTestRun, DoNotCompareScreenshots, OutOfDateClientError, BeforeUserEventOptions, AppUrlConfig, PreNavigationResult, } from "./replay-orchestrator/sdk-to-bundle/execute-replay";
5
5
  export { ExecuteTestRunOptions } from "./replay-orchestrator/sdk-to-bundle/execute-test-run";
6
6
  export { ExecuteScheduledTestRunOptions } from "./replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run";
7
- export { ExecuteTestRunResult, TestRunExecution, RunningTestRunExecution, FinishedTestRunExecution, TestRunProgress, DetailedTestCaseResult, } from "./replay-orchestrator/bundle-to-sdk/execute-test-run";
7
+ export { ExecuteScheduledTestRunChunkOptions } from "./replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run-chunk";
8
+ export { ExecuteTestRunResult, ExecutionProgress, TestRunExecution, RunningTestRunExecution, FinishedTestRunExecution, TestRunProgress, DetailedTestCaseResult, } from "./replay-orchestrator/bundle-to-sdk/execute-test-run";
8
9
  export { InProgressTestRun } from "./replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run";
10
+ export { InProgressTestRunChunk, ExecuteTestRunChunkResult, TestRunChunkExecution, } from "./replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run-chunk";
9
11
  export { ReplayAndStoreResultsResult, ReplayExecution, BeforeUserEventResult, IndexedReplayableEvent, } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
10
12
  export { ScreenshotDiffData } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
11
13
  export { MeticulousPublicApi } from "./window-api/public-window-api";
@@ -0,0 +1,22 @@
1
+ import { Project, TestRunChunkStatus } from "@alwaysmeticulous/api";
2
+ import { DetailedTestCaseResult, ExecutionProgress } from "./execute-test-run";
3
+ export interface ExecuteTestRunChunkResult {
4
+ testRunChunk: TestRunChunkExecution;
5
+ testCaseResults: DetailedTestCaseResult[];
6
+ }
7
+ export interface TestRunChunkExecution {
8
+ testRunId: string;
9
+ chunkNumber: number;
10
+ status: TestRunChunkStatus;
11
+ project: Project;
12
+ progress: ExecutionProgress;
13
+ testRunUrl: string;
14
+ }
15
+ export interface InProgressTestRunChunk {
16
+ /**
17
+ * The results of the tests that were executed within a test run chunk.
18
+ * Resolves when the test run completes.
19
+ */
20
+ result: Promise<ExecuteTestRunChunkResult>;
21
+ markTestRunChunkAsFailed: () => Promise<void>;
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=execute-scheduled-test-run-chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute-scheduled-test-run-chunk.js","sourceRoot":"","sources":["../../../src/replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run-chunk.ts"],"names":[],"mappings":""}
@@ -8,7 +8,7 @@ export interface TestRunExecution {
8
8
  id: string;
9
9
  status: TestRunStatus;
10
10
  project: Project;
11
- progress: TestRunProgress;
11
+ progress: ExecutionProgress;
12
12
  url: string;
13
13
  }
14
14
  export interface RunningTestRunExecution extends TestRunExecution {
@@ -27,12 +27,16 @@ export interface TestRunEditedCoverage {
27
27
  executableLinesEdited: number;
28
28
  executableLinesEditedAndCovered: number;
29
29
  }
30
- export interface TestRunProgress {
30
+ export interface ExecutionProgress {
31
31
  failedTestCases: number;
32
32
  flakedTestCases: number;
33
33
  passedTestCases: number;
34
34
  runningTestCases: number;
35
35
  }
36
+ /**
37
+ * @deprecated Use `ExecutionProgress` instead.
38
+ */
39
+ export type TestRunProgress = ExecutionProgress;
36
40
  export interface DetailedTestCaseResult extends TestCaseResult {
37
41
  screenshotDiffDataByBaseReplayId: Record<string, ScreenshotDiffData>;
38
42
  totalNumberOfScreenshots: number;
@@ -0,0 +1,11 @@
1
+ import { ExecuteTestRunOptions } from "./execute-test-run";
2
+ export type ExecuteScheduledTestRunChunkOptions = Pick<ExecuteTestRunOptions, "chromeExecutablePath" | "apiToken" | "parallelTasks" | "logLevel" | "logicalEnvironmentVersion"> & {
3
+ /**
4
+ * The ID of the scheduled test run to execute.
5
+ */
6
+ testRunId: string;
7
+ /**
8
+ * The chunk number to execute.
9
+ */
10
+ chunkNumber: number;
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=execute-scheduled-test-run-chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute-scheduled-test-run-chunk.js","sourceRoot":"","sources":["../../../src/replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run-chunk.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/sdk-bundles-api",
3
- "version": "2.176.0",
3
+ "version": "2.178.0",
4
4
  "description": "Meticulous common types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "depcheck": "depcheck --ignore-patterns=dist"
20
20
  },
21
21
  "devDependencies": {
22
- "@alwaysmeticulous/api": "^2.175.0"
22
+ "@alwaysmeticulous/api": "^2.178.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "loglevel": "^1.8.0"
@@ -46,5 +46,5 @@
46
46
  "bugs": {
47
47
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
48
48
  },
49
- "gitHead": "c925c0c59a21297a179f3369ac9980b8eab714a5"
49
+ "gitHead": "3762dc597f2c29590a4bef6e3ef6808d8c1924d2"
50
50
  }