Skip to content

Commit 2851b77

Browse files
committed
send capabilities through jest's options
1 parent ec150aa commit 2851b77

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/selenium-side-runner/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dependencies": {
2727
"commander": "^2.12.2",
2828
"jest": "^23.0.0-alpha.7",
29-
"jest-environment-selenium": "^0.1.0",
29+
"jest-environment-selenium": "^0.2.0",
3030
"js-beautify": "^1.7.5",
3131
"js-yaml": "^3.10.0",
3232
"rimraf": "^2.6.2",

packages/selenium-side-runner/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function runProject(project) {
106106
const child = fork(require.resolve("./child"), [
107107
"--testEnvironment", "jest-environment-selenium",
108108
"--setupTestFrameworkScriptFile", require.resolve("jest-environment-selenium/dist/setup.js"),
109+
"--testEnvironmentOptions", JSON.stringify(configuration),
109110
"--modulePaths", path.join(__dirname, "../node_modules"),
110111
"--testMatch", "**/*.test.js"
111112
].concat(program.filter ? ["-t", program.filter] : [])
@@ -139,7 +140,6 @@ function writeJSFile(name, data) {
139140
fs.writeFileSync(`${name}.test.js`, beautify(data, { indent_size: 2 }));
140141
}
141142

142-
process.env.configuration = JSON.stringify(configuration);
143143
const projects = program.args.map(p => JSON.parse(fs.readFileSync(p)));
144144

145145
runAll(projects);

packages/selenium-side-runner/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,9 +1854,9 @@ jest-environment-node@^23.0.0-beta.1:
18541854
jest-mock "^23.0.0-beta.1"
18551855
jest-util "^23.0.0-beta.1"
18561856

1857-
jest-environment-selenium@^0.1.0:
1858-
version "0.1.0"
1859-
resolved "https://registry.yarnpkg.com/jest-environment-selenium/-/jest-environment-selenium-0.1.0.tgz#41a90c2bced748d786984bf52ba32f73241448ec"
1857+
jest-environment-selenium@^0.2.0:
1858+
version "0.2.0"
1859+
resolved "https://registry.yarnpkg.com/jest-environment-selenium/-/jest-environment-selenium-0.2.0.tgz#32c4c6abe1c8be1d6b4f7ff5651527e2d4904736"
18601860
dependencies:
18611861
jest-environment-node "^22.4.3"
18621862
selenium-webdriver "^3.6.0"

0 commit comments

Comments
 (0)