From 93e0ae2b9fc148f36a6d5885fe0e5f019e7f8476 Mon Sep 17 00:00:00 2001 From: mixmix Date: Wed, 31 Jul 2024 15:46:52 +1200 Subject: [PATCH] ts fixups --- tests/programs.test.ts | 11 ++++++----- tsconfig.json | 3 +-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/programs.test.ts b/tests/programs.test.ts index 6958c183..e3700bb8 100644 --- a/tests/programs.test.ts +++ b/tests/programs.test.ts @@ -1,10 +1,11 @@ import test from 'tape' import { readFileSync } from 'node:fs' + import { promiseRunner, charlieStashSeed, setupTest } from './testing-utils' -import { AddProgramParams } from 'src/flows/programs/types' -import { addProgram } from 'src/flows/programs/add' -import { viewPrograms } from 'src/flows/programs/view' -import { removeProgram } from 'src/flows/programs/remove' +import { addProgram } from '../src/flows/programs/add' +import { viewPrograms } from '../src/flows/programs/view' +import { removeProgram } from '../src/flows/programs/remove' +import { AddProgramParams } from '../src/flows/programs/types' const networkType = 'two-nodes' @@ -12,7 +13,7 @@ test('programs', async t => { const { run, entropy } = await setupTest(t, { seed: charlieStashSeed, networkType }) await run('charlie stash register', entropy.register()) const noopProgram: any = readFileSync( - './programs/program_noop.wasm' + new URL('./programs/program_noop.wasm', import.meta.url) ) const newPointer = await run( 'deploy', diff --git a/tsconfig.json b/tsconfig.json index a0d38874..b35dedd6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,6 @@ "exclude": [ "node_modules", "dist", - "build", - "examples" + "tests" ] }