anchor/tests/typescript/tests/typescript.spec.ts

14 lines
403 B
TypeScript

import * as anchor from "@coral-xyz/anchor";
describe("typescript", () => {
// Configure the client to use the local cluster.
anchor.setProvider(anchor.AnchorProvider.env());
it("Is initialized!", async () => {
// Add your test here.
const program = anchor.workspace.Typescript;
const tx = await program.rpc.initialize();
console.log("Your transaction signature", tx);
});
});