Skip to content

Commit

Permalink
Run all WASM tests in headless Chrome web-workers
Browse files Browse the repository at this point in the history
As the default NodeJS runtime fails to exit with pending timeouts or intervals, even after the tests all succeeded.
  • Loading branch information
sisou committed May 8, 2024
1 parent 813fe33 commit 09a9d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ mod tests {
use wasm_bindgen::JsValue;
use wasm_bindgen_test::wasm_bindgen_test;

wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_dedicated_worker);

use crate::{
address::Address,
primitives::{
Expand Down
2 changes: 2 additions & 0 deletions web-client/tests/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ use serde::{Deserialize, Serialize};
use wasm_bindgen_futures::spawn_local;
use wasm_bindgen_test::wasm_bindgen_test;

wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_dedicated_worker);

#[wasm_bindgen_test]
pub async fn it_can_initialize_with_mock_network() {
let mut hub = MockHub::new();
Expand Down

0 comments on commit 09a9d76

Please sign in to comment.