@memlab/cli 1.0.1 → 1.0.2
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/README.md +1 -1
- package/dist/commands/PrintSummaryCommand.js +1 -1
- package/dist/commands/heap/CheckLeakCommand.js +1 -1
- package/dist/commands/heap/GetRetainerTraceCommand.js +2 -2
- package/dist/options/HeapNodeIdOption.d.ts.map +1 -1
- package/dist/options/HeapNodeIdOption.js +8 -9
- package/package.json +1 -1
- package/dist/commands/test/BrowserTest.d.ts +0 -11
- package/dist/commands/test/BrowserTest.d.ts.map +0 -1
- package/dist/commands/test/BrowserTest.js +0 -41
- package/dist/commands/test/RunAllInteractionTestsCommand.d.ts +0 -19
- package/dist/commands/test/RunAllInteractionTestsCommand.d.ts.map +0 -1
- package/dist/commands/test/RunAllInteractionTestsCommand.js +0 -71
- package/dist/commands/test/RunInteractionTestCommand.d.ts +0 -19
- package/dist/commands/test/RunInteractionTestCommand.d.ts.map +0 -1
- package/dist/commands/test/RunInteractionTestCommand.js +0 -75
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## memlab CLI
|
|
2
2
|
|
|
3
|
-
This is the memlab CLI library. It contains all memlab commands, command-line options, and command-line interfaces.
|
|
3
|
+
This is the memlab CLI library. It contains all memlab commands, command-line options, and command-line interfaces.
|
|
4
4
|
The library supports adding new commands.
|
|
5
5
|
|
|
6
6
|
## Full documentation
|
|
@@ -45,7 +45,7 @@ class PrintSummaryCommand extends BaseCommand_1.default {
|
|
|
45
45
|
const workDir = (_a = options.configFromOptions) === null || _a === void 0 ? void 0 : _a.workDir;
|
|
46
46
|
const summaryFile = core_2.fileManager.getLeakSummaryFile({ workDir });
|
|
47
47
|
if (!fs_extra_1.default.existsSync(summaryFile)) {
|
|
48
|
-
core_1.utils.haltOrThrow('No MemLab leak summary found. Please make sure "memlab
|
|
48
|
+
core_1.utils.haltOrThrow('No MemLab leak summary found. Please make sure "memlab find-leaks" runs successfully first.');
|
|
49
49
|
}
|
|
50
50
|
const content = fs_extra_1.default.readFileSync(summaryFile, 'UTF-8');
|
|
51
51
|
core_2.info.topLevel(content);
|
|
@@ -59,7 +59,7 @@ const CleanLoggerDataCommand_1 = __importDefault(require("../CleanLoggerDataComm
|
|
|
59
59
|
const LeakFilterFileOption_1 = __importDefault(require("../../options/heap/leak-filter/LeakFilterFileOption"));
|
|
60
60
|
class CheckLeakCommand extends BaseCommand_1.default {
|
|
61
61
|
getCommandName() {
|
|
62
|
-
return '
|
|
62
|
+
return 'find-leaks';
|
|
63
63
|
}
|
|
64
64
|
getDescription() {
|
|
65
65
|
return 'find memory leaks in heap snapshots';
|
|
@@ -60,7 +60,7 @@ function calculateRetainerTrace() {
|
|
|
60
60
|
}
|
|
61
61
|
class GetRetainerTraceCommand extends BaseCommand_1.default {
|
|
62
62
|
getCommandName() {
|
|
63
|
-
return '
|
|
63
|
+
return 'trace';
|
|
64
64
|
}
|
|
65
65
|
getDescription() {
|
|
66
66
|
return 'report retainer trace of a specific node, use with --nodeId';
|
|
@@ -69,7 +69,7 @@ class GetRetainerTraceCommand extends BaseCommand_1.default {
|
|
|
69
69
|
return BaseCommand_1.CommandCategory.COMMON;
|
|
70
70
|
}
|
|
71
71
|
getExamples() {
|
|
72
|
-
return ['--
|
|
72
|
+
return ['--node-id=@3123123'];
|
|
73
73
|
}
|
|
74
74
|
getOptions() {
|
|
75
75
|
return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeapNodeIdOption.d.ts","sourceRoot":"","sources":["../../src/options/HeapNodeIdOption.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,aAAa,IAAI,MAAM;IAIvB,cAAc,IAAI,MAAM;IAIxB,gBAAgB,IAAI,MAAM,EAAE;IAItB,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"HeapNodeIdOption.d.ts","sourceRoot":"","sources":["../../src/options/HeapNodeIdOption.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,aAAa,IAAI,MAAM;IAIvB,cAAc,IAAI,MAAM;IAIxB,gBAAgB,IAAI,MAAM,EAAE;IAItB,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAUnE"}
|
|
@@ -21,24 +21,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
const core_1 = require("@memlab/core");
|
|
22
22
|
class HeapNodeIdOption extends core_1.BaseOption {
|
|
23
23
|
getOptionName() {
|
|
24
|
-
return '
|
|
24
|
+
return 'node-id';
|
|
25
25
|
}
|
|
26
26
|
getDescription() {
|
|
27
27
|
return 'set heap node ID';
|
|
28
28
|
}
|
|
29
29
|
getExampleValues() {
|
|
30
|
-
return ['
|
|
30
|
+
return ['94435', '@94435'];
|
|
31
31
|
}
|
|
32
32
|
parse(config, args) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const optionName = this.getOptionName();
|
|
35
|
+
const optionValue = args[optionName];
|
|
36
|
+
if (optionValue) {
|
|
37
|
+
if (typeof optionValue === 'string' && optionValue.startsWith('@')) {
|
|
38
|
+
args[optionName] = optionValue.slice(1);
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
args.nodeId = args.nodeId.slice(1);
|
|
40
|
-
}
|
|
41
|
-
config.focusFiberNodeId = Number(args.nodeId);
|
|
40
|
+
config.focusFiberNodeId = Number(args[optionName]);
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @emails oncall+ws_labs
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
export declare function startInteractionTests(): void;
|
|
11
|
-
//# sourceMappingURL=BrowserTest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserTest.d.ts","sourceRoot":"","sources":["../../../src/commands/test/BrowserTest.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA+BH,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*
|
|
8
|
-
* @emails oncall+ws_labs
|
|
9
|
-
* @format
|
|
10
|
-
*/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.startInteractionTests = void 0;
|
|
13
|
-
const core_1 = require("@memlab/core");
|
|
14
|
-
const e2e_1 = require("@memlab/e2e");
|
|
15
|
-
let curTarget = 0;
|
|
16
|
-
function getCommand(app, interaction) {
|
|
17
|
-
const cmd = `memlab`;
|
|
18
|
-
const args = [
|
|
19
|
-
'quick-interaction-test-single',
|
|
20
|
-
`--app=${app}`,
|
|
21
|
-
`--interaction=${interaction}`,
|
|
22
|
-
];
|
|
23
|
-
const options = { msg: [cmd, ...args].join(' ') };
|
|
24
|
-
return [cmd, args, options];
|
|
25
|
-
}
|
|
26
|
-
function nextCommand() {
|
|
27
|
-
const targets = e2e_1.defaultTestPlanner.getAllTargets();
|
|
28
|
-
// we've started all tasks in process
|
|
29
|
-
if (curTarget === targets.length) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
const target = targets[curTarget++];
|
|
33
|
-
// @ts-expect-error unnecessary arg
|
|
34
|
-
return getCommand(target.app, target.interaction, target.warmup);
|
|
35
|
-
}
|
|
36
|
-
function startInteractionTests() {
|
|
37
|
-
core_1.config.runningMode = core_1.modes.get('interaction-test');
|
|
38
|
-
const procManager = new core_1.ProcessManager();
|
|
39
|
-
procManager.start(nextCommand);
|
|
40
|
-
}
|
|
41
|
-
exports.startInteractionTests = startInteractionTests;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @emails oncall+ws_labs
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
import type { CLIOptions } from '@memlab/core';
|
|
11
|
-
import BaseCommand, { CommandCategory } from '../../BaseCommand';
|
|
12
|
-
export default class RunAllInteractionTestsCommand extends BaseCommand {
|
|
13
|
-
getCommandName(): string;
|
|
14
|
-
getDescription(): string;
|
|
15
|
-
getCategory(): CommandCategory;
|
|
16
|
-
getPrerequisites(): BaseCommand[];
|
|
17
|
-
run(_options: CLIOptions): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=RunAllInteractionTestsCommand.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RunAllInteractionTestsCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/test/RunAllInteractionTestsCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAE7C,OAAO,WAAW,EAAE,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAK/D,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,WAAW;IACpE,cAAc,IAAI,MAAM;IAIxB,cAAc,IAAI,MAAM;IAIxB,WAAW,IAAI,eAAe;IAI9B,gBAAgB,IAAI,WAAW,EAAE;IAK3B,GAAG,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/C"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*
|
|
8
|
-
* @emails oncall+ws_labs
|
|
9
|
-
* @format
|
|
10
|
-
*/
|
|
11
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(o, k2, desc);
|
|
18
|
-
}) : (function(o, m, k, k2) {
|
|
19
|
-
if (k2 === undefined) k2 = k;
|
|
20
|
-
o[k2] = m[k];
|
|
21
|
-
}));
|
|
22
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
-
}) : function(o, v) {
|
|
25
|
-
o["default"] = v;
|
|
26
|
-
});
|
|
27
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
37
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
38
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
39
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
40
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
-
};
|
|
46
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
-
const BaseCommand_1 = __importStar(require("../../BaseCommand"));
|
|
48
|
-
const InitDirectoryCommand_1 = __importDefault(require("../InitDirectoryCommand"));
|
|
49
|
-
const CleanRunDataCommand_1 = __importDefault(require("../CleanRunDataCommand"));
|
|
50
|
-
const BrowserTest_1 = require("./BrowserTest");
|
|
51
|
-
class RunAllInteractionTestsCommand extends BaseCommand_1.default {
|
|
52
|
-
getCommandName() {
|
|
53
|
-
return 'quick-interaction-test';
|
|
54
|
-
}
|
|
55
|
-
getDescription() {
|
|
56
|
-
return 'Run all test scenarios in quick test mode';
|
|
57
|
-
}
|
|
58
|
-
getCategory() {
|
|
59
|
-
return BaseCommand_1.CommandCategory.DEV;
|
|
60
|
-
}
|
|
61
|
-
getPrerequisites() {
|
|
62
|
-
return [new CleanRunDataCommand_1.default(), new InitDirectoryCommand_1.default()];
|
|
63
|
-
}
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
65
|
-
run(_options) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
(0, BrowserTest_1.startInteractionTests)();
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.default = RunAllInteractionTestsCommand;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @emails oncall+ws_labs
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
import type { CLIOptions } from '@memlab/core';
|
|
11
|
-
import BaseCommand, { CommandCategory } from '../../BaseCommand';
|
|
12
|
-
export default class RunInteractionTestCommand extends BaseCommand {
|
|
13
|
-
getCommandName(): string;
|
|
14
|
-
getDescription(): string;
|
|
15
|
-
getCategory(): CommandCategory;
|
|
16
|
-
getPrerequisites(): BaseCommand[];
|
|
17
|
-
run(_options: CLIOptions): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=RunInteractionTestCommand.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RunInteractionTestCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/test/RunInteractionTestCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,WAAW,EAAE,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAO/D,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,WAAW;IAChE,cAAc,IAAI,MAAM;IAIxB,cAAc,IAAI,MAAM;IAIxB,WAAW,IAAI,eAAe;IAI9B,gBAAgB,IAAI,WAAW,EAAE;IAK3B,GAAG,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAK/C"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*
|
|
8
|
-
* @emails oncall+ws_labs
|
|
9
|
-
* @format
|
|
10
|
-
*/
|
|
11
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(o, k2, desc);
|
|
18
|
-
}) : (function(o, m, k, k2) {
|
|
19
|
-
if (k2 === undefined) k2 = k;
|
|
20
|
-
o[k2] = m[k];
|
|
21
|
-
}));
|
|
22
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
-
}) : function(o, v) {
|
|
25
|
-
o["default"] = v;
|
|
26
|
-
});
|
|
27
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
37
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
38
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
39
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
40
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
-
};
|
|
46
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
-
const BaseCommand_1 = __importStar(require("../../BaseCommand"));
|
|
48
|
-
const InitDirectoryCommand_1 = __importDefault(require("../InitDirectoryCommand"));
|
|
49
|
-
const core_1 = require("@memlab/core");
|
|
50
|
-
const CleanRunDataCommand_1 = __importDefault(require("../CleanRunDataCommand"));
|
|
51
|
-
const Snapshot_1 = require("../snapshot/Snapshot");
|
|
52
|
-
const api_1 = require("@memlab/api");
|
|
53
|
-
class RunInteractionTestCommand extends BaseCommand_1.default {
|
|
54
|
-
getCommandName() {
|
|
55
|
-
return 'quick-interaction-test-single';
|
|
56
|
-
}
|
|
57
|
-
getDescription() {
|
|
58
|
-
return 'Run test scenario in quick test mode';
|
|
59
|
-
}
|
|
60
|
-
getCategory() {
|
|
61
|
-
return BaseCommand_1.CommandCategory.DEV;
|
|
62
|
-
}
|
|
63
|
-
getPrerequisites() {
|
|
64
|
-
return [new CleanRunDataCommand_1.default(), new InitDirectoryCommand_1.default()];
|
|
65
|
-
}
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
|
-
run(_options) {
|
|
68
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
core_1.config.runningMode = core_1.modes.get('interaction-test', core_1.config);
|
|
70
|
-
yield (0, api_1.warmup)();
|
|
71
|
-
yield (0, Snapshot_1.runPageInteractionFromCLI)();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
exports.default = RunInteractionTestCommand;
|