From 952ff1deb95c4bcb4d326cc7fbd7c197de753dd0 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Wed, 4 May 2022 12:39:01 +0300 Subject: [PATCH] Make script for running unit tests support targeting Co-authored-by: Mikko Aspiala Signed-off-by: Janne Savolainen --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 35a16578d7..4a99a4c967 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "build:mac": "yarn run compile && electron-builder --mac --dir", "build:win": "yarn run compile && electron-builder --win --dir", "integration": "jest --runInBand --detectOpenHandles --forceExit integration", - "test:unit": "jest --watch --testPathIgnorePatterns integration", + "test:unit": "func() { jest ${1} --watch --testPathIgnorePatterns integration; }; func", "test:integration": "func() { jest ${1:-xyz} --watch --runInBand --detectOpenHandles --forceExit --modulePaths=[\"/integration/\"]; }; func", "dist": "yarn run compile && electron-builder --publish onTag", "dist:dir": "yarn run dist --dir -c.compression=store -c.mac.identity=null",