From 3e011c5f241f6de1806fb306f1d92be76fd71809 Mon Sep 17 00:00:00 2001 From: Timofey Boyko Date: Fri, 29 Dec 2023 14:58:39 +0300 Subject: [PATCH] Add unit tests task --- .vscode/tasks.json | 15 +++++++++++++++ frontend.code-workspace | 5 +++++ 2 files changed, 20 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2f7912a529..9077cc2140 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -316,6 +316,21 @@ "focus": true, "close": false } + }, + { + "label": "Test | Jest:unit", + "type": "shell", + "command": "cd ${workspaceFolder} ; yarn test ; ", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "always", + "panel": "new", + "focus": true, + "close": false + } } ] } diff --git a/frontend.code-workspace b/frontend.code-workspace index 396b6ab09f..f8005ca4db 100644 --- a/frontend.code-workspace +++ b/frontend.code-workspace @@ -167,6 +167,11 @@ "label": "spellcheck-force-save", "task": "Test | frontend-translations-spellcheck-force-save", "tooltip": "🛠️ Start the \"frontend translation spellcheck tests\" task" + }, + { + "label": "unit", + "task": "Test | Jest:unit", + "tooltip": "🛠️ Start the \"Test | Jest:unit\" task" } ], "tooltip": "🛠️ Client tests tasks"