File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ jobs:
250250 SSE_ECHO_SERVER_URL : ' http://localhost:8081/.sse'
251251 run : |
252252 cd crates/net
253- wasm-pack test --chrome --firefox --headless --all- features
253+ wasm-pack test --chrome --firefox --headless --features=default,io-util,browser-test
254254
255255 - uses : dtolnay/rust-toolchain@master
256256 with :
@@ -262,4 +262,11 @@ jobs:
262262 HTTPBIN_URL : ' http://localhost:8080'
263263 WS_ECHO_SERVER_URL : ' ws://localhost:8081'
264264 SSE_ECHO_SERVER_URL : ' http://localhost:8081/.sse'
265- run : cargo test -p gloo-net --all-features
265+ run : cargo test -p gloo-net --features=default,io-util
266+
267+ - name : Run node tests
268+ env :
269+ HTTPBIN_URL : ' http://localhost:8080'
270+ WS_ECHO_SERVER_URL : ' ws://localhost:8081'
271+ SSE_ECHO_SERVER_URL : ' http://localhost:8081/.sse'
272+ run : wasm-pack test --node crates/net --features=default,io-util
Original file line number Diff line number Diff line change @@ -100,3 +100,5 @@ eventsource = [
100100]
101101# As of now, only implements `AsyncRead` and `AsyncWrite` on `WebSocket`
102102io-util = [" futures-io" ]
103+ # For test runner only. Enables browser tests.
104+ browser-test = []
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use once_cell::sync::Lazy;
33use serde:: { Deserialize , Serialize } ;
44use wasm_bindgen_test:: * ;
55
6+ #[ cfg( feature = "browser_test" ) ]
67wasm_bindgen_test_configure ! ( run_in_browser) ;
78
89static HTTPBIN_URL : Lazy < & ' static str > =
Original file line number Diff line number Diff line change 11use gloo_net:: http:: QueryParams ;
22use wasm_bindgen_test:: * ;
33
4+ #[ cfg( feature = "browser_test" ) ]
45wasm_bindgen_test_configure ! ( run_in_browser) ;
56
67#[ wasm_bindgen_test]
You can’t perform that action at this time.
0 commit comments