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 811dc95ce16..4e40df920e0 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, + ); });