diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a8c26d5 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/package.json b/package.json index 4b2baaf..d43e5b1 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/packages/protocols/tests/semaphore.test.ts b/packages/protocols/tests/semaphore.test.ts index 3aa2710..ffca5ae 100644 --- a/packages/protocols/tests/semaphore.test.ts +++ b/packages/protocols/tests/semaphore.test.ts @@ -9,6 +9,8 @@ import { Semaphore } from "../src"; const identityCommitments: Array = []; beforeAll(() => { + jest.useFakeTimers('legacy') + jest.setTimeout(90 * 1000); const leafIndex = 3; for (let i=0; i