From fc47cdedf81ec75a8ce4b70ef0243dde2b225244 Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 24 Oct 2023 11:44:18 +0200 Subject: [PATCH] fix test run on combiner --- dockerfiles/phone-number-privacy/Dockerfile-combiner | 2 +- docs/examples/blinding/reactNativeBlindingClient.ts | 1 + packages/phone-number-privacy/combiner/package.json | 3 ++- yarn.lock | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dockerfiles/phone-number-privacy/Dockerfile-combiner b/dockerfiles/phone-number-privacy/Dockerfile-combiner index 7a0c4dac6..44cf78bf7 100644 --- a/dockerfiles/phone-number-privacy/Dockerfile-combiner +++ b/dockerfiles/phone-number-privacy/Dockerfile-combiner @@ -33,7 +33,7 @@ COPY --from=packages celo-phone-number-privacy/packages/${PACKAGE_SELECTOR} pack # Install dependencies and build. RUN yarn -v -RUN yarn install --network-timeout 100000 --frozen-lockfile +RUN yarn install --network-timeout 100000 --immutable RUN yarn build RUN rm -r .git diff --git a/docs/examples/blinding/reactNativeBlindingClient.ts b/docs/examples/blinding/reactNativeBlindingClient.ts index 5c822427d..0114a2657 100644 --- a/docs/examples/blinding/reactNativeBlindingClient.ts +++ b/docs/examples/blinding/reactNativeBlindingClient.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-restricted-imports */ import { hexToBuffer } from '@celo/base/lib/address' import { BlsBlindingClient } from '@celo/identity/lib/odis/bls-blinding-client' import crypto from 'crypto' diff --git a/packages/phone-number-privacy/combiner/package.json b/packages/phone-number-privacy/combiner/package.json index dac23d30f..5fe4e0aa0 100644 --- a/packages/phone-number-privacy/combiner/package.json +++ b/packages/phone-number-privacy/combiner/package.json @@ -13,7 +13,7 @@ "clean": "tsc -b . --clean", "build": "tsc -b .", "lint": "eslint .", - "test": "jest --runInBand --testPathIgnorePatterns test/end-to-end", + "test": "yarn jest --runInBand --testPathIgnorePatterns test/end-to-end", "test:debughandles": "jest --watch --runInBand --detectOpenHandles --testPathIgnorePatterns test/end-to-end", "test:debug": "node --inspect ../../../node_modules/.bin/jest --runInBand", "test:coverage": "yarn test --coverage", @@ -60,6 +60,7 @@ "@types/node": "18.15.13", "@types/supertest": "^2.0.12", "@types/uuid": "^7.0.3", + "jest": "^29.0.2", "knex": "^2.1.0" }, "engines": { diff --git a/yarn.lock b/yarn.lock index 82a2948ad..95f1ad827 100644 --- a/yarn.lock +++ b/yarn.lock @@ -971,6 +971,7 @@ __metadata: bunyan: 1.8.12 dotenv: ^8.2.0 express: ^4.17.1 + jest: ^29.0.2 knex: ^2.1.0 lru-cache: ^10.0.1 node-fetch: ^2.6.9