diff --git a/jsonrpc/provider/test/index.test.ts b/jsonrpc/provider/test/index.test.ts index e1732c8b..bc0aa1c3 100644 --- a/jsonrpc/provider/test/index.test.ts +++ b/jsonrpc/provider/test/index.test.ts @@ -13,6 +13,10 @@ import { fromString } from "uint8arrays/from-string"; import JsonRpcProvider from "../src"; +if (!process.env.TEST_PROJECT_ID) { + throw new Error("TEST_PROJECT_ID env var not set"); +} + chai.use(chaiAsPromised); const TEST_RANDOM_HOST = "random.domain.that.does.not.exist"; @@ -63,7 +67,7 @@ describe("@walletconnect/jsonrpc-provider", () => { version: 2, sdkVersion: version, relayUrl: TEST_URL.ws.good, - projectId: "3cbaa32f8fbf3cdcc87d27ca1fa68069", + projectId: process.env.TEST_PROJECT_ID, auth, }); diff --git a/jsonrpc/ws-connection/test/index.test.ts b/jsonrpc/ws-connection/test/index.test.ts index 349e94c5..3ec059b1 100644 --- a/jsonrpc/ws-connection/test/index.test.ts +++ b/jsonrpc/ws-connection/test/index.test.ts @@ -12,6 +12,10 @@ import { fromString } from "uint8arrays/from-string"; chai.use(chaiAsPromised); +if (!process.env.TEST_PROJECT_ID) { + throw new Error("TEST_PROJECT_ID env var not set"); +} + const BASE16 = "base16"; function generateRandomBytes32(): string { @@ -35,7 +39,7 @@ const formatRelayUrl = async () => { version: 2, sdkVersion: version, relayUrl: RELAY_URL, - projectId: "3cbaa32f8fbf3cdcc87d27ca1fa68069", + projectId: process.env.TEST_PROJECT_ID, auth, }); };