From 659d246f7c84dd02e9ad903b7487ef77faf3f367 Mon Sep 17 00:00:00 2001 From: gagdiez Date: Wed, 22 May 2024 15:56:33 -0300 Subject: [PATCH] fix: types --- contract-ts/sandbox-test/main.ava.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/contract-ts/sandbox-test/main.ava.js b/contract-ts/sandbox-test/main.ava.js index f7ca279..58c6b5a 100644 --- a/contract-ts/sandbox-test/main.ava.js +++ b/contract-ts/sandbox-test/main.ava.js @@ -1,14 +1,15 @@ -import anyTest, { TestFn } from "ava"; -import { Worker, NearAccount } from 'near-workspaces'; +import anyTest from 'ava'; +import { Worker } from 'near-workspaces'; import { setDefaultResultOrder } from 'dns'; setDefaultResultOrder('ipv4first'); // temp fix for node >v17 /** - * @type {TestFn<{ worker: Worker, accounts: Record}>} + * @typedef {import('near-workspaces').NearAccount} NearAccount + * @type {import('ava').TestFn<{worker: Worker, accounts: Record}>} */ -const test = anyTest +const test = anyTest; test.beforeEach(async t => { - // Create sandbox, accounts, deploy contracts, etc. + // Create sandbox const worker = t.context.worker = await Worker.init(); // Deploy contract