You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a test which uses rstest's #[timeout(Duration::from_millis(10000))]
When compiling it with wasm-pack test --release --chrome and running it in the browser, I was getting errors.
I was able to get rid of the errors by having these deps
[dev-dependencies]
rstest = { version = "0.21", features = ["async-timeout"] }
# force `rstest` to depend on `futures-timer` with a wasm-compatible feature
futures-timer = { version = "*", features = ["wasm-bindgen"] }
Maybe rstest could itself have a wasm-bindgen feature which enables the wasm-bindgen feature of futures-timer?
The text was updated successfully, but these errors were encountered:
Hi, I have a test which uses rstest's
#[timeout(Duration::from_millis(10000))]
When compiling it with
wasm-pack test --release --chrome
and running it in the browser, I was getting errors.I was able to get rid of the errors by having these deps
Maybe rstest could itself have a
wasm-bindgen
feature which enables thewasm-bindgen
feature of futures-timer?The text was updated successfully, but these errors were encountered: