From 20ef2b409e5ac7b468a0ddbb60495903f378fa6a Mon Sep 17 00:00:00 2001 From: lonerapier Date: Thu, 29 Aug 2024 02:26:21 +0530 Subject: [PATCH] experiment with mocha parallel tests --- .github/workflows/test.yml | 6 +++--- package.json | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ada78d..3943f72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,11 +25,11 @@ jobs: - name: Download and install Circom run: | - CIRCOM_VERSION=2.1.9 + CIRCOM_VERSION=2.1.9 curl -L https://github.com/iden3/circom/releases/download/v$CIRCOM_VERSION/circom-linux-amd64 -o circom chmod +x circom sudo mv circom /usr/local/bin/ - circom --version + circom --version - name: Run tests - run: npx mocha + run: npm run par-test diff --git a/package.json b/package.json index 8af29d1..8f55708 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "version": "0.1.0", "license": "Apache-2.0", "scripts": { - "test": "npx mocha" + "test": "npx mocha", + "par-test": "npx mocha --parallel" }, "dependencies": { "@zk-email/circuits": "^6.1.1", @@ -22,4 +23,4 @@ "type": "git", "url": "https://github.com/pluto/extractor.git" } -} +} \ No newline at end of file