From a580d7993c2bd89e558c834c63c60b26c600ebe4 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Wed, 15 Jan 2025 01:00:52 -0600 Subject: [PATCH] chore(test): fix test --- tests/e2e/cjs/index.test.ts | 9 +++++---- tests/e2e/docker-compose.test.yml | 1 - tests/e2e/esm/index.test.ts | 13 +++++++++++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/tests/e2e/cjs/index.test.ts b/tests/e2e/cjs/index.test.ts index 3e768517..24b6f5af 100644 --- a/tests/e2e/cjs/index.test.ts +++ b/tests/e2e/cjs/index.test.ts @@ -36,6 +36,7 @@ const signers = [ createAoSigner(new ArweaveSigner(testWallet)), ]; const processId = process.env.ARIO_PROCESS_ID || arioDevnetProcessId; +const arweave = Arweave.init({}); describe('e2e cjs tests', async () => { describe('ARIO client works ', async () => { it('should be able to instantiate ARIO with default process', async () => { @@ -52,20 +53,20 @@ describe('e2e cjs tests', async () => { assert(ario instanceof ARIOReadable); }); - it('should be able to instantiate ARIO with a process and arweave', async () => { + it.skip('should be able to instantiate ARIO with a process and arweave', async () => { const ario = ARIO.init({ process: new AOProcess({ processId, }), - arweave: Arweave.init({}), + arweave, }); assert(ario instanceof ARIOReadable); }); - it('should be able to instantiate ARIO with a processId and arweave', async () => { + it('should be able to instantiate ARIO with a process id and arweave', async () => { const ario = ARIO.init({ processId, - arweave: Arweave.init({}), + arweave, }); assert(ario instanceof ARIOReadable); }); diff --git a/tests/e2e/docker-compose.test.yml b/tests/e2e/docker-compose.test.yml index 606138d5..99896ff6 100644 --- a/tests/e2e/docker-compose.test.yml +++ b/tests/e2e/docker-compose.test.yml @@ -1,7 +1,6 @@ services: ao-cu: image: ghcr.io/permaweb/ao-cu:latest - restart: on-failure volumes: - ${CU_WALLET_FILE:-./test-wallet.json}:/usr/app/test-wallet.json ports: diff --git a/tests/e2e/esm/index.test.ts b/tests/e2e/esm/index.test.ts index 183612c4..e759c3d2 100644 --- a/tests/e2e/esm/index.test.ts +++ b/tests/e2e/esm/index.test.ts @@ -39,6 +39,7 @@ const signers = [ const aoClient = connect({ CU_URL: 'http://localhost:6363', }); +const arweave = Arweave.init({}); const processId = process.env.ARIO_PROCESS_ID || arioDevnetProcessId; const ario = ARIO.init({ @@ -85,9 +86,17 @@ describe('e2e esm tests', async () => { process: new AOProcess({ processId, }), - arweave: Arweave.init({}), + arweave, }); - assert(ario instanceof ARIOWriteable); + assert(ario instanceof ARIOReadable); + }); + + it('should be able to instantiate ARIO with a proces id and arweave', async () => { + const ario = ARIO.init({ + processId, + arweave, + }); + assert(ario instanceof ARIOReadable); }); it('should be able to get the process information', async () => {