@alwaysmeticulous/replay-orchestrator-launcher 2.236.2 → 2.237.1
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.js +4 -13
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
package/dist/index.js
CHANGED
|
@@ -3,14 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.executeTestRun = exports.executeScheduledTestRunChunk = exports.executeScheduledTestRun = exports.replayAndStoreResults = void 0;
|
|
4
4
|
const common_1 = require("@alwaysmeticulous/common");
|
|
5
5
|
const downloading_helpers_1 = require("@alwaysmeticulous/downloading-helpers");
|
|
6
|
-
const puppeteer_1 = require("puppeteer");
|
|
7
6
|
const replayAndStoreResults = async (options) => {
|
|
8
7
|
const logger = (0, common_1.initLogger)();
|
|
9
8
|
const bundleLocation = await (0, downloading_helpers_1.fetchAsset)("replay/v3/replay-and-store-results.bundle.js");
|
|
10
9
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
11
10
|
return (await require(bundleLocation)).replayAndStoreResults({
|
|
12
11
|
...options,
|
|
13
|
-
chromeExecutablePath:
|
|
12
|
+
chromeExecutablePath: await (0, common_1.ensureBrowser)(),
|
|
14
13
|
logLevel: logger.getLevel(),
|
|
15
14
|
});
|
|
16
15
|
};
|
|
@@ -23,7 +22,7 @@ const executeScheduledTestRun = async (options) => {
|
|
|
23
22
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
24
23
|
return (await require(bundleLocation)).executeTestRunV2({
|
|
25
24
|
...options,
|
|
26
|
-
chromeExecutablePath:
|
|
25
|
+
chromeExecutablePath: await (0, common_1.ensureBrowser)(),
|
|
27
26
|
logLevel: logger.getLevel(),
|
|
28
27
|
});
|
|
29
28
|
};
|
|
@@ -35,7 +34,7 @@ const executeScheduledTestRunChunk = async (options) => {
|
|
|
35
34
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
36
35
|
return (await require(bundleLocation)).executeTestRunChunk({
|
|
37
36
|
...options,
|
|
38
|
-
chromeExecutablePath:
|
|
37
|
+
chromeExecutablePath: await (0, common_1.ensureBrowser)(),
|
|
39
38
|
logLevel: logger.getLevel(),
|
|
40
39
|
});
|
|
41
40
|
};
|
|
@@ -46,17 +45,9 @@ const executeTestRun = async (options) => {
|
|
|
46
45
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
47
46
|
return (await require(bundleLocation)).executeTestRun({
|
|
48
47
|
...options,
|
|
49
|
-
chromeExecutablePath:
|
|
48
|
+
chromeExecutablePath: await (0, common_1.ensureBrowser)(),
|
|
50
49
|
logLevel: logger.getLevel(),
|
|
51
50
|
});
|
|
52
51
|
};
|
|
53
52
|
exports.executeTestRun = executeTestRun;
|
|
54
|
-
const getChromiumExecutablePath = () => {
|
|
55
|
-
// replay-orchestrator-launcher has a puppeteer dependency, which ensures
|
|
56
|
-
// that Chromium gets downloaded at the Yarn/NPM pre-install stage. We need to pass
|
|
57
|
-
// the reference to this specific version of Chromium to the replay bundle, since
|
|
58
|
-
// the replay bundle may use a slightly different version of Puppeteer, which
|
|
59
|
-
// may have a slightly different default Chromium path/version.
|
|
60
|
-
return (0, puppeteer_1.executablePath)();
|
|
61
|
-
};
|
|
62
53
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAAqE;AACrE,+EAAmE;AAY5D,MAAM,qBAAqB,GAAG,KAAK,EACxC,OAGC,EACyB,EAAE;IAC5B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;IAC5B,MAAM,cAAc,GAAG,MAAM,IAAA,gCAAU,EACrC,8CAA8C,CAC/C,CAAC;IAEF,iEAAiE;IACj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CAAC,CAAC;AAnBW,QAAA,4BAA4B,gCAmBvC;AAEK,MAAM,cAAc,GAAG,KAAK,EACjC,OAAyE,EAC1C,EAAE;IACjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;IAC5B,MAAM,cAAc,GAAG,MAAM,IAAA,gCAAU,EACrC,sCAAsC,CACvC,CAAC;IAEF,iEAAiE;IACjE,OAAO,CAAC,MAAM,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC;QACpD,GAAG,OAAO;QACV,oBAAoB,EAAE,MAAM,IAAA,sBAAa,GAAE;QAC3C,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC;AAdW,QAAA,cAAc,kBAczB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/replay-orchestrator-launcher",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.237.1",
|
|
4
4
|
"description": "Downloads the replay-orchestrator bundle script and executes it",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
"depcheck": "depcheck --ignore-patterns=dist"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@alwaysmeticulous/common": "^2.
|
|
23
|
-
"@alwaysmeticulous/downloading-helpers": "^2.
|
|
24
|
-
"@alwaysmeticulous/sdk-bundles-api": "^2.235.2"
|
|
25
|
-
"puppeteer": "24.14.0"
|
|
22
|
+
"@alwaysmeticulous/common": "^2.237.1",
|
|
23
|
+
"@alwaysmeticulous/downloading-helpers": "^2.237.1",
|
|
24
|
+
"@alwaysmeticulous/sdk-bundles-api": "^2.235.2"
|
|
26
25
|
},
|
|
27
26
|
"author": {
|
|
28
27
|
"name": "The Meticulous Team",
|
|
@@ -41,5 +40,5 @@
|
|
|
41
40
|
"bugs": {
|
|
42
41
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
43
42
|
},
|
|
44
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "95eba4fa43ec4f4033dc4823d8a43c4418302c6c"
|
|
45
44
|
}
|