From 486fae6ed008fbb4f37693861f7b33f3de65a2b2 Mon Sep 17 00:00:00 2001 From: homura Date: Mon, 24 Jun 2024 18:39:46 +0900 Subject: [PATCH] test(common-scripts): ignore coverage of globalThis.ethereum checking --- packages/common-scripts/src/omnilock-ethereum-displaying.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/common-scripts/src/omnilock-ethereum-displaying.ts b/packages/common-scripts/src/omnilock-ethereum-displaying.ts index 510c6608f..3b3c04852 100644 --- a/packages/common-scripts/src/omnilock-ethereum-displaying.ts +++ b/packages/common-scripts/src/omnilock-ethereum-displaying.ts @@ -17,6 +17,7 @@ export async function signMessage( digest: BytesLike, provider?: Provider ): Promise { + /* c8 ignore start */ const internal: Provider | undefined = provider ?? (globalThis as { ethereum?: Provider }).ethereum; @@ -25,6 +26,7 @@ export async function signMessage( "No provider found, make sure you have installed MetaMask or the other EIP1193 compatible wallet" ); } + /* c8 ignore end */ const sig = await internal.request({ method: "personal_sign",