From 661ca1d486f85c5f91490f35fb22dfe8b1f497a6 Mon Sep 17 00:00:00 2001 From: gagdiez Date: Wed, 22 May 2024 15:33:08 -0300 Subject: [PATCH] add: jdocs --- contract-ts/sandbox-test/main.ava.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contract-ts/sandbox-test/main.ava.js b/contract-ts/sandbox-test/main.ava.js index 286dc4b..f7ca279 100644 --- a/contract-ts/sandbox-test/main.ava.js +++ b/contract-ts/sandbox-test/main.ava.js @@ -1,6 +1,12 @@ -import { Worker } from 'near-workspaces'; +import anyTest, { TestFn } from "ava"; +import { Worker, NearAccount } from 'near-workspaces'; import { setDefaultResultOrder } from 'dns'; setDefaultResultOrder('ipv4first'); // temp fix for node >v17 +/** + * @type {TestFn<{ worker: Worker, accounts: Record}>} + */ +const test = anyTest + test.beforeEach(async t => { // Create sandbox, accounts, deploy contracts, etc. const worker = t.context.worker = await Worker.init();