@alwaysmeticulous/cli 2.4.0 → 2.5.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/api/client.js +2 -2
- package/dist/api/download.js +1 -1
- package/dist/api/replay.api.d.ts +1 -1
- package/dist/api/upload.js +1 -1
- package/dist/archive/archive.js +2 -2
- package/dist/command-utils/common-options.d.ts +2 -2
- package/dist/command-utils/common-options.js +3 -3
- package/dist/commands/create-test/create-test.command.js +14 -13
- package/dist/commands/record/record.command.d.ts +9 -9
- package/dist/commands/record/record.command.js +2 -3
- package/dist/commands/replay/replay.command.d.ts +13 -10
- package/dist/commands/replay/replay.command.js +24 -13
- package/dist/commands/run-all-tests/run-all-tests.command.js +12 -12
- package/dist/commands/screenshot-diff/screenshot-diff.command.js +1 -1
- package/dist/commands/upload-build/upload-build.command.js +2 -2
- package/dist/config/config.js +2 -2
- package/dist/deflake-tests/deflake-tests.handler.d.ts +1 -1
- package/dist/deflake-tests/deflake-tests.handler.js +2 -1
- package/dist/local-data/replay-assets.js +2 -2
- package/dist/local-data/replays.js +8 -9
- package/dist/local-data/screenshot-diffs.js +1 -1
- package/dist/local-data/serve-assets-from-simulation.js +5 -4
- package/dist/local-data/sessions.js +2 -2
- package/dist/parallel-tests/parallel-tests.handler.d.ts +3 -3
- package/dist/parallel-tests/parallel-tests.handler.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/api-token.utils.d.ts +1 -1
- package/dist/utils/api-token.utils.js +3 -3
- package/dist/utils/commit-sha.utils.js +1 -1
- package/dist/utils/config.utils.d.ts +1 -1
- package/dist/utils/github-summary.utils.js +2 -2
- package/package.json +3 -3
- package/dist/command-utils/command-utils.d.ts +0 -9
- package/dist/command-utils/command-utils.js +0 -18
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getCommitSha = void 0;
|
|
7
|
-
const common_1 = require("@alwaysmeticulous/common");
|
|
8
7
|
const child_process_1 = require("child_process");
|
|
8
|
+
const common_1 = require("@alwaysmeticulous/common");
|
|
9
9
|
const loglevel_1 = __importDefault(require("loglevel"));
|
|
10
10
|
const getGitRevParseHead = () => {
|
|
11
11
|
return new Promise((resolve, reject) => {
|
|
@@ -3,6 +3,6 @@ import { TestCase } from "../config/config.types";
|
|
|
3
3
|
export declare const addTestCase: (testCase: TestCase) => Promise<void>;
|
|
4
4
|
export declare const getReplayTargetForTestCase: ({ useAssetsSnapshottedInBaseSimulation, appUrl, testCase, }: {
|
|
5
5
|
useAssetsSnapshottedInBaseSimulation: boolean;
|
|
6
|
-
appUrl: string |
|
|
6
|
+
appUrl: string | null;
|
|
7
7
|
testCase: TestCase;
|
|
8
8
|
}) => ReplayTarget;
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.writeGitHubSummary = void 0;
|
|
7
7
|
const promises_1 = require("fs/promises");
|
|
8
|
-
const test_run_api_1 = require("../api/test-run.api");
|
|
9
|
-
const loglevel_1 = __importDefault(require("loglevel"));
|
|
10
8
|
const common_1 = require("@alwaysmeticulous/common");
|
|
9
|
+
const loglevel_1 = __importDefault(require("loglevel"));
|
|
10
|
+
const test_run_api_1 = require("../api/test-run.api");
|
|
11
11
|
const writeGitHubSummary = async ({ testRun, results }) => {
|
|
12
12
|
const logger = loglevel_1.default.getLogger(common_1.METICULOUS_LOGGER_NAME);
|
|
13
13
|
const summaryFile = process.env["GITHUB_STEP_SUMMARY"] || "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "The Meticulous CLI",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"cli:dev": "ts-node src/main.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@alwaysmeticulous/common": "^2.
|
|
27
|
+
"@alwaysmeticulous/common": "^2.5.0",
|
|
28
28
|
"@sentry/node": "^7.2.0",
|
|
29
29
|
"adm-zip": "^0.5.9",
|
|
30
30
|
"archiver": "^5.3.1",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"bugs": {
|
|
76
76
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "7877ff5ec26784ede52e453ecc1ba2d7d10cb929"
|
|
79
79
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare type UndefinedToNullOrUndefined<T extends object> = {
|
|
2
|
-
[K in keyof T]: undefined extends T[K] ? T[K] | null : T[K];
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* yargs normally passes through undefineds, but passes through nulls for
|
|
6
|
-
* numbers which fail to parse. We convert everything to undefined to standardize.
|
|
7
|
-
*/
|
|
8
|
-
export declare const handleNulls: <T extends object>(handler: (args: T) => Promise<void>) => (args: UndefinedToNullOrUndefined<T>) => Promise<void>;
|
|
9
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.handleNulls = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* yargs normally passes through undefineds, but passes through nulls for
|
|
6
|
-
* numbers which fail to parse. We convert everything to undefined to standardize.
|
|
7
|
-
*/
|
|
8
|
-
const handleNulls = (handler) => {
|
|
9
|
-
return (args) => {
|
|
10
|
-
const keys = Object.keys(args);
|
|
11
|
-
const newArgs = keys.reduce((partialArgs, key) => ({
|
|
12
|
-
...partialArgs,
|
|
13
|
-
[key]: args[key] === null ? undefined : args[key],
|
|
14
|
-
}), {});
|
|
15
|
-
return handler(newArgs);
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
exports.handleNulls = handleNulls;
|