diff --git a/tests/circomkit.test.ts b/tests/circomkit.test.ts index eb27ca4..8e4da53 100644 --- a/tests/circomkit.test.ts +++ b/tests/circomkit.test.ts @@ -32,19 +32,6 @@ forEach(PROTOCOLS).describe('protocol: %s', (protocol: (typeof PROTOCOLS)[number expect(existsSync(`${outPath}/${CIRCUIT_NAME}_cpp`)).to.be.false; }); - it('should compile circuit and generate the c witness calculator files', async () => { - const circomKitCWitness = new Circomkit({ - protocol, - verbose: false, - logLevel: 'silent', - cWitness: true, - }); - const outPath = await circomKitCWitness.compile(CIRCUIT_NAME); - expect(existsSync(`${outPath}/${CIRCUIT_NAME}_cpp`)).to.be.true; - // remove it to prevent the next proof system run to fail - rmSync(`${outPath}/${CIRCUIT_NAME}_cpp`, {recursive: true}); - }); - it('should export circuit information', async () => { await circomkit.info(CIRCUIT_NAME); }); diff --git a/tests/configs.test.ts b/tests/configs.test.ts index 8d551fb..fd55011 100644 --- a/tests/configs.test.ts +++ b/tests/configs.test.ts @@ -1,7 +1,7 @@ import {expect} from 'chai'; import {Circomkit} from '../src'; import forEach from 'mocha-each'; -import {existsSync} from 'fs'; +import {existsSync, rmSync} from 'fs'; describe('circomkit config overrides', () => { it('should override default configs', () => { @@ -128,5 +128,7 @@ describe('generating C witness', () => { const circomKitCWitness = new Circomkit({...CONFIG, cWitness: true}); const outPath = await circomKitCWitness.compile(CIRCUIT_NAME); expect(existsSync(`${outPath}/${CIRCUIT_NAME}_cpp`)).to.be.true; + + rmSync(`${outPath}/${CIRCUIT_NAME}_cpp`, {recursive: true}); }); });