@alwaysmeticulous/replay-orchestrator-launcher 2.48.0 → 2.49.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 +2 -2
- package/dist/index.js +11 -0
- package/package.json +4 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ExecuteTestRunOptions, ExecuteTestRunResult, ReplayAndStoreResultsOptions, ReplayExecution } from "@alwaysmeticulous/sdk-bundles-api";
|
|
2
|
-
export declare const replayAndStoreResults: (options: Omit<ReplayAndStoreResultsOptions, "logLevel">) => Promise<ReplayExecution>;
|
|
3
|
-
export declare const executeTestRun: (options: Omit<ExecuteTestRunOptions, "logLevel">) => Promise<ExecuteTestRunResult>;
|
|
2
|
+
export declare const replayAndStoreResults: (options: Omit<ReplayAndStoreResultsOptions, "logLevel" | "chromeExecutablePath">) => Promise<ReplayExecution>;
|
|
3
|
+
export declare const executeTestRun: (options: Omit<ExecuteTestRunOptions, "logLevel" | "chromeExecutablePath">) => Promise<ExecuteTestRunResult>;
|
package/dist/index.js
CHANGED
|
@@ -7,11 +7,13 @@ exports.executeTestRun = exports.replayAndStoreResults = void 0;
|
|
|
7
7
|
const common_1 = require("@alwaysmeticulous/common");
|
|
8
8
|
const downloading_helpers_1 = require("@alwaysmeticulous/downloading-helpers");
|
|
9
9
|
const loglevel_1 = __importDefault(require("loglevel"));
|
|
10
|
+
const puppeteer_1 = require("puppeteer");
|
|
10
11
|
const replayAndStoreResults = async (options) => {
|
|
11
12
|
const logger = loglevel_1.default.getLogger(common_1.METICULOUS_LOGGER_NAME);
|
|
12
13
|
const bundleLocation = await (0, downloading_helpers_1.fetchAsset)("replay/v3/replay-and-store-results.bundle.js");
|
|
13
14
|
return (await require(bundleLocation)).replayAndStoreResults({
|
|
14
15
|
...options,
|
|
16
|
+
chromeExecutablePath: getChromiumExecutablePath(),
|
|
15
17
|
logLevel: logger.getLevel(),
|
|
16
18
|
});
|
|
17
19
|
};
|
|
@@ -21,7 +23,16 @@ const executeTestRun = async (options) => {
|
|
|
21
23
|
const bundleLocation = await (0, downloading_helpers_1.fetchAsset)("replay/v3/execute-test-run.bundle.js");
|
|
22
24
|
return (await require(bundleLocation)).executeTestRun({
|
|
23
25
|
...options,
|
|
26
|
+
chromeExecutablePath: getChromiumExecutablePath(),
|
|
24
27
|
logLevel: logger.getLevel(),
|
|
25
28
|
});
|
|
26
29
|
};
|
|
27
30
|
exports.executeTestRun = executeTestRun;
|
|
31
|
+
const getChromiumExecutablePath = () => {
|
|
32
|
+
// replay-orchestrator-launcher has a puppeteer dependency, which ensures
|
|
33
|
+
// that Chromium gets downloaded at the Yarn/NPM pre-install stage. We need to pass
|
|
34
|
+
// the reference to this specific version of Chromium to the replay bundle, since
|
|
35
|
+
// the replay bundle may use a slightly different version of Puppeteer, which
|
|
36
|
+
// may have a slightly different default Chromium path/version.
|
|
37
|
+
return (0, puppeteer_1.executablePath)();
|
|
38
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/replay-orchestrator-launcher",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.49.0",
|
|
4
4
|
"description": "Downloads the replay-orchestrator bundle script and executes it",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,10 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alwaysmeticulous/common": "^2.48.0",
|
|
23
23
|
"@alwaysmeticulous/downloading-helpers": "^2.48.0",
|
|
24
|
-
"@alwaysmeticulous/sdk-bundles-api": "^2.
|
|
25
|
-
"loglevel": "^1.8.0"
|
|
26
|
-
},
|
|
27
|
-
"peerDependencies": {
|
|
24
|
+
"@alwaysmeticulous/sdk-bundles-api": "^2.49.0",
|
|
25
|
+
"loglevel": "^1.8.0",
|
|
28
26
|
"puppeteer": "19.7.5"
|
|
29
27
|
},
|
|
30
28
|
"author": {
|
|
@@ -44,5 +42,5 @@
|
|
|
44
42
|
"bugs": {
|
|
45
43
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
46
44
|
},
|
|
47
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f98b933c110cfbfbe92f2834d511b413237486fe"
|
|
48
46
|
}
|