import { Cl, ClarityType } from "@stacks/transactions";
import { beforeEach, describe, expect, it } from "vitest";
import { initSimnet } from "@stacks/clarinet-sdk";
let simnet: Awaited<ReturnType<typeof initSimnet>>;
let accounts: ReturnType<Awaited<ReturnType<typeof initSimnet>>["getAccounts"]>;
let deployer: string;
let address1: string;
beforeEach(async () => {
simnet = await initSimnet();
accounts = simnet.getAccounts();
deployer = accounts.get("deployer")!;
address1 = accounts.get("wallet_1")!;
});
describe("counter", () => {
it("increments", () => {
const result = simnet.callPublicFn("counter", "increment", [], address1);
expect(result.result.type).toBe(ClarityType.ResponseOk);
});
});