@alwaysmeticulous/cli 2.42.1 → 2.44.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.
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
/// <reference types="yargs" />
|
|
2
|
-
import { Replay, ScreenshotDiffOptions
|
|
2
|
+
import { Replay, ScreenshotDiffOptions } from "@alwaysmeticulous/api";
|
|
3
3
|
import { ReplayExecutionOptions, ReplayTarget } from "@alwaysmeticulous/sdk-bundles-api";
|
|
4
|
-
export interface ReplayAndStoreResultsResult {
|
|
5
|
-
replay: Replay;
|
|
6
|
-
/**
|
|
7
|
-
* Empty if screenshottingOptions.enabled was false.
|
|
8
|
-
*/
|
|
9
|
-
screenshotDiffResultsByBaseReplayId: Record<string, ScreenshotDiffResult[]>;
|
|
10
|
-
}
|
|
11
4
|
export interface RawReplayCommandHandlerOptions extends ScreenshotDiffOptions, Omit<ReplayExecutionOptions, "maxDurationMs" | "maxEventCount"> {
|
|
12
5
|
screenshot: boolean;
|
|
13
6
|
appUrl: string | null | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.replayCommand = exports.getReplayTarget = exports.rawReplayCommandHandler = void 0;
|
|
4
4
|
const common_1 = require("@alwaysmeticulous/common");
|
|
5
|
-
const
|
|
5
|
+
const replay_orchestrator_launcher_1 = require("@alwaysmeticulous/replay-orchestrator-launcher");
|
|
6
6
|
const command_builder_1 = require("../../command-utils/command-builder");
|
|
7
7
|
const common_options_1 = require("../../command-utils/common-options");
|
|
8
8
|
const out_of_date_client_error_1 = require("../../utils/out-of-date-client-error");
|
|
@@ -50,7 +50,7 @@ const rawReplayCommandHandler = async ({ apiToken, commitSha, sessionId, appUrl,
|
|
|
50
50
|
const getOnBeforeUserEventCallback = (0, common_1.defer)();
|
|
51
51
|
const getOnClosePageCallback = (0, common_1.defer)();
|
|
52
52
|
try {
|
|
53
|
-
const replayExecution = await (0,
|
|
53
|
+
const replayExecution = await (0, replay_orchestrator_launcher_1.replayAndStoreResults)({
|
|
54
54
|
replayTarget: (0, exports.getReplayTarget)({
|
|
55
55
|
appUrl: appUrl !== null && appUrl !== void 0 ? appUrl : null,
|
|
56
56
|
simulationIdForAssets: simulationIdForAssets !== null && simulationIdForAssets !== void 0 ? simulationIdForAssets : null,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.runAllTestsCommand = void 0;
|
|
4
4
|
const client_1 = require("@alwaysmeticulous/client");
|
|
5
5
|
const common_1 = require("@alwaysmeticulous/common");
|
|
6
|
-
const
|
|
6
|
+
const replay_orchestrator_launcher_1 = require("@alwaysmeticulous/replay-orchestrator-launcher");
|
|
7
7
|
const test_run_api_1 = require("../../api/test-run.api");
|
|
8
8
|
const command_builder_1 = require("../../command-utils/command-builder");
|
|
9
9
|
const common_options_1 = require("../../command-utils/common-options");
|
|
@@ -38,7 +38,7 @@ const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl,
|
|
|
38
38
|
? await (0, test_run_api_1.getCachedTestRunResults)({ client, commitSha })
|
|
39
39
|
: [];
|
|
40
40
|
try {
|
|
41
|
-
const { testRun } = await (0,
|
|
41
|
+
const { testRun } = await (0, replay_orchestrator_launcher_1.executeTestRun)({
|
|
42
42
|
testsFile: testsFile !== null && testsFile !== void 0 ? testsFile : null,
|
|
43
43
|
executionOptions,
|
|
44
44
|
screenshottingOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.0",
|
|
4
4
|
"description": "The Meticulous CLI",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"depcheck": "depcheck --ignore-patterns=dist"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alwaysmeticulous/api": "^2.
|
|
31
|
-
"@alwaysmeticulous/client": "^2.
|
|
32
|
-
"@alwaysmeticulous/common": "^2.
|
|
33
|
-
"@alwaysmeticulous/downloading-helpers": "^2.
|
|
34
|
-
"@alwaysmeticulous/record": "^2.
|
|
30
|
+
"@alwaysmeticulous/api": "^2.44.0",
|
|
31
|
+
"@alwaysmeticulous/client": "^2.44.0",
|
|
32
|
+
"@alwaysmeticulous/common": "^2.44.0",
|
|
33
|
+
"@alwaysmeticulous/downloading-helpers": "^2.44.0",
|
|
34
|
+
"@alwaysmeticulous/record": "^2.44.0",
|
|
35
35
|
"@alwaysmeticulous/replay-debugger-ui": "^2.42.0",
|
|
36
|
-
"@alwaysmeticulous/replay-orchestrator": "^2.
|
|
37
|
-
"@alwaysmeticulous/sdk-bundles-api": "^2.
|
|
36
|
+
"@alwaysmeticulous/replay-orchestrator-launcher": "^2.44.0",
|
|
37
|
+
"@alwaysmeticulous/sdk-bundles-api": "^2.44.0",
|
|
38
38
|
"@alwaysmeticulous/sentry": "^2.40.0",
|
|
39
39
|
"@sentry/node": "^7.36.0",
|
|
40
40
|
"axios": "^1.2.6",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"coverageDirectory": "../coverage",
|
|
80
80
|
"testEnvironment": "node"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "3895b3036d7c97609f83e8b41593995eba5062ba"
|
|
83
83
|
}
|