@qawolf/config
Advanced tools
Comparing version 0.9.0-alpha.0 to 0.9.0-alpha.3
@@ -20,2 +20,3 @@ "use strict"; | ||
}; | ||
const browser = types_1.getBrowserType(process.env.QAW_BROWSER || "chromium"); | ||
let artifactPath = process.env.QAW_ARTIFACT_PATH; | ||
@@ -25,6 +26,9 @@ if (artifactPath && require.main) { | ||
} | ||
if (artifactPath) { | ||
artifactPath = path_1.default.join(artifactPath, browser); | ||
} | ||
exports.CONFIG = { | ||
artifactPath, | ||
attribute: process.env.QAW_ATTRIBUTE || "data-cy,data-qa,data-test,data-testid", | ||
browser: types_1.getBrowserType(process.env.QAW_BROWSER || "chromium"), | ||
browser, | ||
disableVideoArtifact: parseBool(process.env.QAW_DISABLE_VIDEO_ARTIFACT), | ||
@@ -31,0 +35,0 @@ debug: parseBool(process.env.QAW_DEBUG), |
{ | ||
"name": "@qawolf/config", | ||
"description": "qawolf config (node only)", | ||
"version": "0.9.0-alpha.0", | ||
"version": "0.9.0-alpha.3", | ||
"license": "BSD-3.0", | ||
@@ -30,3 +30,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "64bb960883592bb4786981fd4886474c29d16639" | ||
"gitHead": "f5881f89b05c4252780743ef0cd2140a5b684f7b" | ||
} |
@@ -20,3 +20,6 @@ import { getBrowserType } from "@qawolf/types"; | ||
const browser = getBrowserType(process.env.QAW_BROWSER || "chromium"); | ||
let artifactPath = process.env.QAW_ARTIFACT_PATH; | ||
if (artifactPath && require.main) { | ||
@@ -28,2 +31,7 @@ // store artifacts under the name of the main module, if there is one | ||
// store artifacts under the name of the browser being tested | ||
if (artifactPath) { | ||
artifactPath = path.join(artifactPath, browser); | ||
} | ||
export const CONFIG = { | ||
@@ -33,3 +41,3 @@ artifactPath, | ||
process.env.QAW_ATTRIBUTE || "data-cy,data-qa,data-test,data-testid", | ||
browser: getBrowserType(process.env.QAW_BROWSER || "chromium"), | ||
browser, | ||
disableVideoArtifact: parseBool(process.env.QAW_DISABLE_VIDEO_ARTIFACT), | ||
@@ -36,0 +44,0 @@ debug: parseBool(process.env.QAW_DEBUG), |
Sorry, the diff of this file is not supported yet
8506
117