wasm-pack
wasm-pack copied to clipboard
`wasm-pack test` can not execute process `wasm-bindgen-test-runner.exe`
🐛 Bug description
wasm-pack test --chrome --headless
produces the following error:
Caused by:
could not execute process `C:\Users\David 'Glymph\AppData\Local\.wasm-pack\wasm-bindgen-7e757a9923d43b8a\wasm-bindgen-test-runner.exe' 'C:\Users\David Glymph\Desktop\coding\rust-wasm-tuts\wasm-game-of-life\target\wasm32-unknown-unknown\debug\deps\wasm_game_of_life-71aba50298adce03.wasm'` (never executed)
Error: Running Wasm tests with wasm-bindgen-test failed
Caused by: failed to execute `cargo test`: exited with exit code: 101
full command: "cargo" "test" "--target" "wasm32-unknown-unknown" "--verbose"
I'm almost certain this is related the Windows path for wasm-bindgen-test-runner.exe
having a space in it.
🤔 Expected Behavior
Run tests
👟 Steps to reproduce
Using the template app which comes with preconfigured test
-
cargo generate --git https://github.com/rustwasm/wasm-pack-template
-
wasm-pack test --chrome --headless
🌍 Your environment
Windows 11 wasm-pack version: 0.10.3 rustc version: 1.64.0 (a55dd71d5 2022-09-19)
Even I am getting this error. I think this error is due to the blank space in the user directory.