From 72dbf0b77c43e9620a5d154d34352681fd7fd68d Mon Sep 17 00:00:00 2001 From: Adam Simon Date: Tue, 31 Oct 2023 18:52:09 +0100 Subject: [PATCH] Attempt at fixing code coverage OOM --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6454d3f..fea479a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "types": "lib/index.d.ts", "module": "lib/esm/index.js", "scripts": { - "coverage": "nyc npm run test", + "coverage": "cross-env NODE_OPTIONS=--max-old-space-size=16384 nyc npm run test", "build": "tsc -p tsconfig.build.cjs.json && tsc -p tsconfig.build.esm.json", "prepare": "npm run build", "test": "cross-env TS_NODE_PROJECT=./tsconfig.mocha.json node --expose-gc node_modules/mocha/bin/_mocha --require ts-node/register 'test/**/*.ts' --exit --timeout 30000",