From: Chris Duncan Date: Tue, 9 Sep 2025 20:09:57 +0000 (-0700) Subject: Skip Ledger tests if no USB support. X-Git-Tag: v0.10.5~22^2~12 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=daa2b3ac1a1b3cd17889c1539e4f79606674cfde;p=libnemo.git Skip Ledger tests if no USB support. --- diff --git a/test/test.ledger.mjs b/test/test.ledger.mjs index a8fcee7..ff76320 100644 --- a/test/test.ledger.mjs +++ b/test/test.ledger.mjs @@ -37,7 +37,7 @@ const rpc = new Rpc(env.NODE_URL ?? '', env.API_KEY_NAME) */ await Promise.all([ /* node:coverage disable */ - suite('Ledger hardware wallet', { skip: false || isNode }, async () => { + suite('Ledger hardware wallet', { skip: false || isNode || navigator.usb == null }, async () => { const { OPEN_BLOCK, RECEIVE_BLOCK, SEND_BLOCK } = NANO_TEST_VECTORS let wallet, account, openBlock, sendBlock, receiveBlock