import { expect } from "@jest/globals"; import { clusterApiUrl, Connection } from "@solana/web3.js"; import { fetchPythPrices, PYTH_MAINNET_PKS } from "../src"; describe("fetchPythPrices", () => { const connection = new Connection(clusterApiUrl("mainnet-beta")); it("can fetch prices", async () => { const prices = await fetchPythPrices(connection, PYTH_MAINNET_PKS); expect(Object.values(prices).every((price) => price > 0)).toBeTruthy(); }); });