fix include path for wasm_tester

This commit is contained in:
0xturboblitz
2024-05-11 14:50:49 +09:00
parent cda2b7552d
commit 25d801b1e9
2 changed files with 11 additions and 3 deletions

View File

@@ -21,7 +21,11 @@ describe("start testing register.circom", function () {
before(async () => {
circuit = await wasm_tester(path.join(__dirname, "../circuits/disclose.circom"),
{ include: ["node_modules"] },
{ include: [
"node_modules",
"./node_modules/@zk-kit/binary-merkle-root.circom/src",
"./node_modules/circomlib/circuits"
] },
);
const secret = BigInt(Math.floor(Math.random() * Math.pow(2, 254))).toString();
@@ -53,7 +57,7 @@ describe("start testing register.circom", function () {
mrz_bytes[0],
mrz_bytes[1],
mrz_bytes[2]
]).toString();
])
console.log("commitment", commitment);
tree = new IMT(poseidon2, COMMITMENT_TREE_DEPTH, 0, 2);

View File

@@ -18,7 +18,11 @@ describe("Proof of Passport - Circuits - Register flow", function () {
before(async () => {
circuit = await wasm_tester(
path.join(__dirname, "../circuits/register_sha256WithRSAEncryption_65537.circom"),
{ include: ["node_modules"] },
{ include: [
"node_modules",
"./node_modules/@zk-kit/binary-merkle-root.circom/src",
"./node_modules/circomlib/circuits"
] },
);
const secret = BigInt(Math.floor(Math.random() * Math.pow(2, 254))).toString();