Skip to content

Commit 12c1fd6

Browse files
committed
Add WASM_BINDGEN_WEBDRIVER_JSON var to override webdriver.json path
1 parent c35cc93 commit 12c1fd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ pub fn run(
126126
session: None,
127127
};
128128
println!("Try find `webdriver.json` for configure browser's capabilities:");
129-
let capabilities: Capabilities = match File::open("webdriver.json") {
129+
let capabilities: Capabilities = match File::open(
130+
std::env::var("WASM_BINDGEN_WEBDRIVER_JSON").unwrap_or("webdriver.json".to_string()),
131+
) {
130132
Ok(file) => {
131133
println!("Ok");
132134
serde_json::from_reader(file)

0 commit comments

Comments
 (0)