Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed May 22, 2024
1 parent 661ca1d commit 659d246
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions contract-ts/sandbox-test/main.ava.js
Original file line number Diff line number Diff line change
@@ -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<string, NearAccount>}>}
* @typedef {import('near-workspaces').NearAccount} NearAccount
* @type {import('ava').TestFn<{worker: Worker, accounts: Record<string, NearAccount>}>}
*/
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
Expand Down

0 comments on commit 659d246

Please sign in to comment.