@elench/testkit 0.1.15 → 0.1.16
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/lib/runner.mjs +1 -20
- package/package.json +1 -1
package/lib/runner.mjs
CHANGED
|
@@ -780,7 +780,7 @@ function buildExecutionEnv(config, extraEnv = {}) {
|
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
function buildPlaywrightEnv(config, baseUrl) {
|
|
783
|
-
|
|
783
|
+
return buildExecutionEnv(config, {
|
|
784
784
|
BASE_URL: baseUrl,
|
|
785
785
|
PLAYWRIGHT_HTML_OPEN: "never",
|
|
786
786
|
PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS:
|
|
@@ -788,25 +788,6 @@ function buildPlaywrightEnv(config, baseUrl) {
|
|
|
788
788
|
TESTKIT_MANAGED_SERVERS: "1",
|
|
789
789
|
TESTKIT_WORKER_ID: String(config.workerId),
|
|
790
790
|
});
|
|
791
|
-
|
|
792
|
-
const browsersPath = resolvePlaywrightBrowsersPath(env.PLAYWRIGHT_BROWSERS_PATH);
|
|
793
|
-
if (browsersPath) {
|
|
794
|
-
env.PLAYWRIGHT_BROWSERS_PATH = browsersPath;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
return env;
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
function resolvePlaywrightBrowsersPath(configuredPath) {
|
|
801
|
-
const home = process.env.HOME;
|
|
802
|
-
if (home) {
|
|
803
|
-
const fallback = path.join(home, ".cache", "ms-playwright");
|
|
804
|
-
if (fs.existsSync(fallback)) {
|
|
805
|
-
return fallback;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
return configuredPath;
|
|
810
791
|
}
|
|
811
792
|
|
|
812
793
|
function buildSuiteResult(suite, failed, startedAt, failedFiles = []) {
|