From 92e285e184f56e3ca9441ecbcdc6b287727cb4f9 Mon Sep 17 00:00:00 2001 From: walfly Date: Fri, 1 May 2020 11:17:47 -0700 Subject: [PATCH] fix: babel running out of memory when running jest --- package.json | 2 +- packages/daf-w3c/src/__tests__/graphql.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 651e0ad42..592fdc292 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "publish": "lerna publish", "bootstrap": "lerna bootstrap", "docs": "ts-node ./scripts/generate-docs.ts && api-documenter markdown -i ./tmpapi -o ./docs/api && rm -rf ./tmpapi", - "test": "jest --config=jest.json", + "test": "jest --config=jest.json --maxWorkers=2", "test:watch": "jest --config=jest.json --watch", "daf": "./packages/daf-cli/bin/daf.js", "build-clean": "rimraf ./packages/*/build ./packages/*/node_modules ./packages/*/tsconfig.tsbuildinfo", diff --git a/packages/daf-w3c/src/__tests__/graphql.test.ts b/packages/daf-w3c/src/__tests__/graphql.test.ts index fbd374cf3..f24958bbd 100644 --- a/packages/daf-w3c/src/__tests__/graphql.test.ts +++ b/packages/daf-w3c/src/__tests__/graphql.test.ts @@ -28,7 +28,7 @@ describe('daf-w3c:graphql', () => { it('handles Mutation.actionSignVp', async () => { const data = { issuer: mockDid, - audience: 'did:web:uport.me', + audience: ['did:web:uport.me'], context: ['https://www.w3.org/2018/credentials/v1'], type: ['VerifiablePresentation'], verifiableCredential: ['JWT'],