From b449e2ce47379bdc69f539b96b3472d5df49d710 Mon Sep 17 00:00:00 2001 From: Daniele Ricci Date: Tue, 14 Jan 2025 10:58:05 +0100 Subject: [PATCH] test: fix unit tests default BLOCKFROST_PROJECT_ID --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 44f7b3e..4eeaa7c 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "start": "yarn build && yarn node ./dist/src/server.js", "start:profiler": "yarn build && NODE_ENV=production yarn node --prof ./dist/src/server.js", "test-performance": "yarn build && yarn node ./dist/src/scripts/performance/index.js", - "test": "BLOCKFROST_PROJECT_ID=mainnet_none vitest --config vitest.config.unit.ts", + "test": "BLOCKFROST_PROJECT_ID=${BLOCKFROST_PROJECT_ID:-mainnet_none} vitest --config vitest.config.unit.ts", "test:e2e": "vitest --config vitest.config.e2e.ts", "coverage": "vitest run --coverage", "type-check": "tsc --project tsconfig.json"