From 5c5b00ffd65532820e51285da7c327759c3d92a9 Mon Sep 17 00:00:00 2001 From: Tom French Date: Tue, 15 Aug 2023 13:02:21 +0100 Subject: [PATCH] chore: make `wasm` tests pull from `result` directory --- .github/workflows/wasm.yml | 2 +- crates/wasm/test/browser/index.test.ts | 2 +- crates/wasm/test/shared.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 66cb260aebf..7d429accdbf 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -130,7 +130,7 @@ jobs: uses: actions/download-artifact@v3 with: name: noir_wasm - path: ./crates/wasm/dist + path: ./crates/wasm/result - name: Download nargo binary uses: actions/download-artifact@v3 diff --git a/crates/wasm/test/browser/index.test.ts b/crates/wasm/test/browser/index.test.ts index 6c86f0d3f94..9cc49069bfd 100644 --- a/crates/wasm/test/browser/index.test.ts +++ b/crates/wasm/test/browser/index.test.ts @@ -1,5 +1,5 @@ import { expect } from "@esm-bundle/chai"; -import initNoirWasm from "../../dist"; +import initNoirWasm from "../../result"; import { compileNoirSource, nargoArtifactPath, noirSourcePath } from "../shared"; beforeEach(async () => { diff --git a/crates/wasm/test/shared.ts b/crates/wasm/test/shared.ts index c21ce2e0de4..ee9c57d24f6 100644 --- a/crates/wasm/test/shared.ts +++ b/crates/wasm/test/shared.ts @@ -1,5 +1,5 @@ import { initialiseResolver } from "@noir-lang/noir-source-resolver"; -import { compile } from "../dist/"; +import { compile } from "../result/"; export const noirSourcePath = "../../noir-script/src/main.nr"; export const nargoArtifactPath = "../../noir-script/target/noir_wasm_testing.json";