pretier and lerna build

This commit is contained in:
Andrija Novakovic
2021-10-19 00:06:09 +02:00
parent fc80456d81
commit 451c033253
3 changed files with 21 additions and 0 deletions

13
.editorconfig Normal file
View File

@@ -0,0 +1,13 @@
#root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
indent_size = 2
[*.md]
trim_trailing_whitespace = false

View File

@@ -7,7 +7,13 @@
"doc": "docs"
},
"scripts": {
"install": "npm run bootstrap && npm run build",
"bootstrap": "lerna bootstrap --no-ci",
"build": "lerna run build",
"build:watch": "lerna run --parallel build:watch -- -- --watch",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "npm run lint && npm test",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix"
},

View File

@@ -9,6 +9,8 @@ import { Semaphore } from "../src";
const identityCommitments: Array<bigint> = [];
beforeAll(() => {
jest.useFakeTimers('legacy')
jest.setTimeout(90 * 1000);
const leafIndex = 3;
for (let i=0; i<leafIndex;i++) {