From 807518f87e981b9cc1a4a9531e41bfd43aeaee32 Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Thu, 25 Jan 2024 18:05:02 +0100 Subject: [PATCH] Add test command with --test-only parameter --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b4fe168..d647394 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ "build+start": "npm run build && npm run start", "build:watch": "tsc -w -p tsconfig.json", "test:watch": "node --import tsx --test --watch **/**/*.spec.ts", - "test": "node --import tsx --test **/**/*.spec.ts" - }, + "test:watch:only": "node --import tsx --test --test-only --watch **/**/*.spec.ts", + "test": "node --import tsx --test **/**/*.spec.ts", + "test:only": "node --import tsx --test --test-only **/**/*.spec.ts"}, "bin": { "node-base": ".bin/install.js" },