From 638d03fd2eac27e383d84fb3b0b63817fe0ea220 Mon Sep 17 00:00:00 2001 From: ludamad Date: Mon, 23 Sep 2024 18:10:15 -0400 Subject: [PATCH] chore(ci): bump noir compile tests --- .../wasm/test/compiler/node/compile.test.ts | 64 +++++++++++-------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/noir/noir-repo/compiler/wasm/test/compiler/node/compile.test.ts b/noir/noir-repo/compiler/wasm/test/compiler/node/compile.test.ts index 811dc95ce162..4e40df920e0c 100644 --- a/noir/noir-repo/compiler/wasm/test/compiler/node/compile.test.ts +++ b/noir/noir-repo/compiler/wasm/test/compiler/node/compile.test.ts @@ -10,30 +10,42 @@ import { shouldCompileContractIdentically, shouldCompileProgramIdentically } fro const basePath = resolve(join(__dirname, '../../')); describe('noir-compiler/node', () => { - shouldCompileProgramIdentically(async () => { - const { simpleScriptProjectPath, simpleScriptExpectedArtifact } = getPaths(basePath); - - const fm = createFileManager(simpleScriptProjectPath); - const nargoArtifact = JSON.parse((await readFile(simpleScriptExpectedArtifact)).toString()) as ProgramArtifact; - const noirWasmArtifact = await compile_program(fm); - return { nargoArtifact, noirWasmArtifact }; - }, expect); - - shouldCompileProgramIdentically(async () => { - const { depsScriptProjectPath, depsScriptExpectedArtifact } = getPaths(basePath); - - const fm = createFileManager(depsScriptProjectPath); - const nargoArtifact = JSON.parse((await readFile(depsScriptExpectedArtifact)).toString()) as ProgramArtifact; - const noirWasmArtifact = await compile_program(fm); - return { nargoArtifact, noirWasmArtifact }; - }, expect); - - shouldCompileContractIdentically(async () => { - const { contractProjectPath, contractExpectedArtifact } = getPaths(basePath); - - const fm = createFileManager(contractProjectPath); - const nargoArtifact = JSON.parse((await readFile(contractExpectedArtifact)).toString()) as ContractArtifact; - const noirWasmArtifact = await compile_contract(fm); - return { nargoArtifact, noirWasmArtifact }; - }, expect); + shouldCompileProgramIdentically( + async () => { + const { simpleScriptProjectPath, simpleScriptExpectedArtifact } = getPaths(basePath); + + const fm = createFileManager(simpleScriptProjectPath); + const nargoArtifact = JSON.parse((await readFile(simpleScriptExpectedArtifact)).toString()) as ProgramArtifact; + const noirWasmArtifact = await compile_program(fm); + return { nargoArtifact, noirWasmArtifact }; + }, + expect, + /*30 second timeout*/ 30000, + ); + + shouldCompileProgramIdentically( + async () => { + const { depsScriptProjectPath, depsScriptExpectedArtifact } = getPaths(basePath); + + const fm = createFileManager(depsScriptProjectPath); + const nargoArtifact = JSON.parse((await readFile(depsScriptExpectedArtifact)).toString()) as ProgramArtifact; + const noirWasmArtifact = await compile_program(fm); + return { nargoArtifact, noirWasmArtifact }; + }, + expect, + /*30 second timeout*/ 30000, + ); + + shouldCompileContractIdentically( + async () => { + const { contractProjectPath, contractExpectedArtifact } = getPaths(basePath); + + const fm = createFileManager(contractProjectPath); + const nargoArtifact = JSON.parse((await readFile(contractExpectedArtifact)).toString()) as ContractArtifact; + const noirWasmArtifact = await compile_contract(fm); + return { nargoArtifact, noirWasmArtifact }; + }, + expect, + /*30 second timeout*/ 30000, + ); });