Separate builds for prod & tests for faster tests

This commit is contained in:
arnaucube
2020-05-23 16:56:27 +02:00
parent 77719dbe4e
commit 9776f46e4b
15 changed files with 88 additions and 21 deletions

View File

@@ -13,11 +13,11 @@ describe("deposit test", function () {
it("Test Deposit", async () => {
const circuit = await tester(
path.join(__dirname, "../../circuits", "deposit.circom"),
path.join(__dirname, "main", "deposit.circom"),
{reduceConstraints: false}
);
const nLevels = 17;
const nLevels = 4;
const secret = "1234567890";
const coinCode = "0";

View File

@@ -0,0 +1,3 @@
include "../../../circuits/deposit.circom";
component main = Deposit(4);

View File

@@ -0,0 +1,3 @@
include "../../../circuits/withdraw.circom";
component main = Withdraw(4);

View File

@@ -13,11 +13,11 @@ describe("withdraw test", function () {
it("Test Withdraw", async () => {
const circuit = await tester(
path.join(__dirname, "../../circuits", "withdraw.circom"),
path.join(__dirname, "main", "withdraw.circom"),
{reduceConstraints: false}
);
const nLevels = 17;
const nLevels = 4;
const secret = "1234567890";
const coinCode = "0";