diff --git a/tests/integration/disclosure.test.ts b/tests/integration/disclosure.test.ts index 8b10ee0..19caf3b 100644 --- a/tests/integration/disclosure.test.ts +++ b/tests/integration/disclosure.test.ts @@ -14,7 +14,7 @@ // @ts-ignore - circomlibjs doesn't have types import { buildPoseidon } from 'circomlibjs'; -import { generateProof, CircuitType, isReady } from '../../src'; +import { generateProof, CircuitType } from '../../src'; describe('Integration: Disclosure Proof Generation', () => { let poseidon: any; @@ -24,13 +24,7 @@ describe('Integration: Disclosure Proof Generation', () => { poseidon = await buildPoseidon(); }); - // Skip this test if artifacts are not available it('should generate a valid disclosure proof', async () => { - // Check if proof generator is ready - if (!isReady()) { - console.warn('⚠️ Skipping: Proof generator not ready. Run: npm run build'); - return; - } const F = poseidon.F; // Create note @@ -112,10 +106,6 @@ describe('Integration: Disclosure Proof Generation', () => { }, 30000); // 30 second timeout it('should fail with invalid inputs', async () => { - if (!isReady()) { - return; - } - await expect( generateProof(CircuitType.Disclosure, { commitment: 'invalid', @@ -124,10 +114,6 @@ describe('Integration: Disclosure Proof Generation', () => { }); it('should fail with missing required fields', async () => { - if (!isReady()) { - return; - } - await expect( generateProof(CircuitType.Disclosure, { commitment: '123', @@ -137,10 +123,6 @@ describe('Integration: Disclosure Proof Generation', () => { }); it('should fail with null/undefined inputs', async () => { - if (!isReady()) { - return; - } - await expect( // @ts-ignore - Testing invalid input generateProof(CircuitType.Disclosure, null) diff --git a/tests/integration/transfer.test.ts b/tests/integration/transfer.test.ts index f89e4b9..c703c7e 100644 --- a/tests/integration/transfer.test.ts +++ b/tests/integration/transfer.test.ts @@ -15,7 +15,7 @@ // @ts-ignore - circomlibjs doesn't have types import { buildPoseidon, buildEddsa, buildBabyjub } from 'circomlibjs'; -import { generateProof, CircuitType, isReady } from '../../src'; +import { generateProof, CircuitType } from '../../src'; describe('Integration: Transfer Proof Generation', () => { let poseidon: any; @@ -29,13 +29,7 @@ describe('Integration: Transfer Proof Generation', () => { babyJub = await buildBabyjub(); }); - // Skip this test if artifacts are not available it('should generate a valid transfer proof', async () => { - // Check if proof generator is ready - if (!isReady()) { - console.warn('⚠️ Skipping: Proof generator not ready. Run: npm run build'); - return; - } const F = poseidon.F; // Generate EdDSA keypairs for input note owners @@ -233,10 +227,6 @@ describe('Integration: Transfer Proof Generation', () => { }, 30000); // 30 second timeout it('should fail with invalid inputs', async () => { - if (!isReady()) { - return; - } - await expect( generateProof(CircuitType.Transfer, { merkle_root: 'invalid', @@ -245,10 +235,6 @@ describe('Integration: Transfer Proof Generation', () => { }); it('should fail with missing required fields', async () => { - if (!isReady()) { - return; - } - await expect( generateProof(CircuitType.Transfer, { merkle_root: '123', @@ -258,10 +244,6 @@ describe('Integration: Transfer Proof Generation', () => { }); it('should fail with null/undefined inputs', async () => { - if (!isReady()) { - return; - } - await expect( // @ts-ignore - Testing invalid input generateProof(CircuitType.Transfer, null) diff --git a/tests/integration/unshield.test.ts b/tests/integration/unshield.test.ts index 1df930f..bc4e12b 100644 --- a/tests/integration/unshield.test.ts +++ b/tests/integration/unshield.test.ts @@ -14,7 +14,7 @@ // @ts-ignore - circomlibjs doesn't have types import { buildPoseidon } from 'circomlibjs'; -import { generateProof, CircuitType, isReady } from '../../src'; +import { generateProof, CircuitType } from '../../src'; describe('Integration: Unshield Proof Generation', () => { let poseidon: any; @@ -24,13 +24,7 @@ describe('Integration: Unshield Proof Generation', () => { poseidon = await buildPoseidon(); }); - // Skip this test if artifacts are not available it('should generate a valid unshield proof', async () => { - // Check if proof generator is ready - if (!isReady()) { - console.warn('⚠️ Skipping: Proof generator not ready. Run: npm run build'); - return; - } const F = poseidon.F; // Create note