@alwaysmeticulous/cli 2.46.0 → 2.48.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/command-utils/common-options.d.ts +12 -0
- package/dist/command-utils/common-options.js +7 -0
- package/dist/commands/replay/replay.command.d.ts +6 -0
- package/dist/commands/replay/replay.command.js +2 -1
- package/dist/commands/run-all-tests/run-all-tests.command.d.ts +6 -0
- package/dist/commands/run-all-tests/run-all-tests.command.js +2 -1
- package/package.json +9 -9
|
@@ -78,6 +78,12 @@ export declare const OPTIONS: {
|
|
|
78
78
|
readonly description: "Disable any features that are non-essential for running tests/executing replays. This includes disabling recording a video of the replay, for playback in the web app. This flag is useful to reduce noise when debugging.";
|
|
79
79
|
readonly default: false;
|
|
80
80
|
};
|
|
81
|
+
readonly logPossibleNonDeterminism: {
|
|
82
|
+
readonly boolean: true;
|
|
83
|
+
readonly description: "Enable logging of non-determinism events";
|
|
84
|
+
readonly default: false;
|
|
85
|
+
readonly hidden: true;
|
|
86
|
+
};
|
|
81
87
|
};
|
|
82
88
|
export declare const SCREENSHOT_DIFF_OPTIONS: {
|
|
83
89
|
diffThreshold: {
|
|
@@ -153,4 +159,10 @@ export declare const COMMON_REPLAY_OPTIONS: {
|
|
|
153
159
|
readonly description: "Disable any features that are non-essential for running tests/executing replays. This includes disabling recording a video of the replay, for playback in the web app. This flag is useful to reduce noise when debugging.";
|
|
154
160
|
readonly default: false;
|
|
155
161
|
};
|
|
162
|
+
logPossibleNonDeterminism: {
|
|
163
|
+
readonly boolean: true;
|
|
164
|
+
readonly description: "Enable logging of non-determinism events";
|
|
165
|
+
readonly default: false;
|
|
166
|
+
readonly hidden: true;
|
|
167
|
+
};
|
|
156
168
|
};
|
|
@@ -91,6 +91,12 @@ exports.OPTIONS = {
|
|
|
91
91
|
description: "Disable any features that are non-essential for running tests/executing replays. This includes disabling recording a video of the replay, for playback in the web app. This flag is useful to reduce noise when debugging.",
|
|
92
92
|
default: false,
|
|
93
93
|
},
|
|
94
|
+
logPossibleNonDeterminism: {
|
|
95
|
+
boolean: true,
|
|
96
|
+
description: "Enable logging of non-determinism events",
|
|
97
|
+
default: false,
|
|
98
|
+
hidden: true,
|
|
99
|
+
},
|
|
94
100
|
};
|
|
95
101
|
exports.SCREENSHOT_DIFF_OPTIONS = {
|
|
96
102
|
diffThreshold: exports.OPTIONS.diffThreshold,
|
|
@@ -112,4 +118,5 @@ exports.COMMON_REPLAY_OPTIONS = {
|
|
|
112
118
|
maxDurationMs: exports.OPTIONS.maxDurationMs,
|
|
113
119
|
maxEventCount: exports.OPTIONS.maxEventCount,
|
|
114
120
|
essentialFeaturesOnly: exports.OPTIONS.essentialFeaturesOnly,
|
|
121
|
+
logPossibleNonDeterminism: exports.OPTIONS.logPossibleNonDeterminism,
|
|
115
122
|
};
|
|
@@ -73,6 +73,12 @@ export declare const replayCommand: import("yargs").CommandModule<unknown, impor
|
|
|
73
73
|
readonly description: "Disable any features that are non-essential for running tests/executing replays. This includes disabling recording a video of the replay, for playback in the web app. This flag is useful to reduce noise when debugging.";
|
|
74
74
|
readonly default: false;
|
|
75
75
|
};
|
|
76
|
+
logPossibleNonDeterminism: {
|
|
77
|
+
readonly boolean: true;
|
|
78
|
+
readonly description: "Enable logging of non-determinism events";
|
|
79
|
+
readonly default: false;
|
|
80
|
+
readonly hidden: true;
|
|
81
|
+
};
|
|
76
82
|
apiToken: {
|
|
77
83
|
readonly string: true;
|
|
78
84
|
};
|
|
@@ -7,7 +7,7 @@ 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");
|
|
9
9
|
const replay_debugger_ui_1 = require("./utils/replay-debugger.ui");
|
|
10
|
-
const replayCommandHandler = async ({ apiToken, commitSha, sessionId, appUrl, simulationIdForAssets, headless, devTools, bypassCSP, screenshot, baseReplayId, diffThreshold, diffPixelThreshold, shiftTime, networkStubbing, moveBeforeClick, cookiesFile, disableRemoteFonts, noSandbox, skipPauses, maxDurationMs, maxEventCount, storyboard, essentialFeaturesOnly, debugger: enableStepThroughDebugger, }) => {
|
|
10
|
+
const replayCommandHandler = async ({ apiToken, commitSha, sessionId, appUrl, simulationIdForAssets, headless, devTools, bypassCSP, screenshot, baseReplayId, diffThreshold, diffPixelThreshold, shiftTime, networkStubbing, moveBeforeClick, cookiesFile, disableRemoteFonts, noSandbox, skipPauses, maxDurationMs, maxEventCount, storyboard, essentialFeaturesOnly, logPossibleNonDeterminism, debugger: enableStepThroughDebugger, }) => {
|
|
11
11
|
if (!screenshot && storyboard) {
|
|
12
12
|
throw new Error("Cannot take storyboard screenshots without taking end state screenshots. Please set '--screenshot' to true, or '--storyboard' to false.");
|
|
13
13
|
}
|
|
@@ -27,6 +27,7 @@ const replayCommandHandler = async ({ apiToken, commitSha, sessionId, appUrl, si
|
|
|
27
27
|
maxDurationMs: maxDurationMs !== null && maxDurationMs !== void 0 ? maxDurationMs : null,
|
|
28
28
|
maxEventCount: maxEventCount !== null && maxEventCount !== void 0 ? maxEventCount : null,
|
|
29
29
|
essentialFeaturesOnly,
|
|
30
|
+
logPossibleNonDeterminism
|
|
30
31
|
};
|
|
31
32
|
const generatedByOption = { type: "replayCommand" };
|
|
32
33
|
const storyboardOptions = storyboard
|
|
@@ -68,6 +68,12 @@ export declare const runAllTestsCommand: import("yargs").CommandModule<unknown,
|
|
|
68
68
|
readonly description: "Disable any features that are non-essential for running tests/executing replays. This includes disabling recording a video of the replay, for playback in the web app. This flag is useful to reduce noise when debugging.";
|
|
69
69
|
readonly default: false;
|
|
70
70
|
};
|
|
71
|
+
readonly logPossibleNonDeterminism: {
|
|
72
|
+
readonly boolean: true;
|
|
73
|
+
readonly description: "Enable logging of non-determinism events";
|
|
74
|
+
readonly default: false;
|
|
75
|
+
readonly hidden: true;
|
|
76
|
+
};
|
|
71
77
|
readonly apiToken: {
|
|
72
78
|
readonly string: true;
|
|
73
79
|
};
|
|
@@ -6,7 +6,7 @@ const replay_orchestrator_launcher_1 = require("@alwaysmeticulous/replay-orchest
|
|
|
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");
|
|
9
|
-
const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl, headless, devTools, bypassCSP, diffThreshold, diffPixelThreshold, shiftTime, networkStubbing, githubSummary, parallelize, parallelTasks: parrelelTasks_, maxRetriesOnFailure, rerunTestsNTimes, testsFile, disableRemoteFonts, noSandbox, skipPauses, moveBeforeClick, maxDurationMs, maxEventCount, storyboard, essentialFeaturesOnly, baseTestRunId, }) => {
|
|
9
|
+
const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl, headless, devTools, bypassCSP, diffThreshold, diffPixelThreshold, shiftTime, networkStubbing, githubSummary, parallelize, parallelTasks: parrelelTasks_, maxRetriesOnFailure, rerunTestsNTimes, testsFile, disableRemoteFonts, noSandbox, skipPauses, moveBeforeClick, maxDurationMs, maxEventCount, storyboard, essentialFeaturesOnly, logPossibleNonDeterminism, baseTestRunId, }) => {
|
|
10
10
|
const executionOptions = {
|
|
11
11
|
headless,
|
|
12
12
|
devTools,
|
|
@@ -19,6 +19,7 @@ const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl,
|
|
|
19
19
|
moveBeforeClick,
|
|
20
20
|
maxDurationMs: maxDurationMs !== null && maxDurationMs !== void 0 ? maxDurationMs : null,
|
|
21
21
|
maxEventCount: maxEventCount !== null && maxEventCount !== void 0 ? maxEventCount : null,
|
|
22
|
+
logPossibleNonDeterminism,
|
|
22
23
|
essentialFeaturesOnly,
|
|
23
24
|
};
|
|
24
25
|
const storyboardOptions = storyboard
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.48.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.48.0",
|
|
31
|
+
"@alwaysmeticulous/client": "^2.48.0",
|
|
32
|
+
"@alwaysmeticulous/common": "^2.48.0",
|
|
33
|
+
"@alwaysmeticulous/downloading-helpers": "^2.48.0",
|
|
34
|
+
"@alwaysmeticulous/record": "^2.48.0",
|
|
35
35
|
"@alwaysmeticulous/replay-debugger-ui": "^2.46.0",
|
|
36
|
-
"@alwaysmeticulous/replay-orchestrator-launcher": "^2.
|
|
37
|
-
"@alwaysmeticulous/sdk-bundles-api": "^2.
|
|
36
|
+
"@alwaysmeticulous/replay-orchestrator-launcher": "^2.48.0",
|
|
37
|
+
"@alwaysmeticulous/sdk-bundles-api": "^2.48.0",
|
|
38
38
|
"@alwaysmeticulous/sentry": "^2.40.0",
|
|
39
39
|
"@sentry/node": "^7.36.0",
|
|
40
40
|
"loglevel": "^1.8.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"coverageDirectory": "../coverage",
|
|
79
79
|
"testEnvironment": "node"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "a2f7ae87ab240ad2f996b648e2af33dcc7ab126d"
|
|
82
82
|
}
|