From 5791bd294356c65e9a74e2d2e0699b547ba4ae08 Mon Sep 17 00:00:00 2001 From: Paul Rastoin <45004772+prastoin@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:48:49 +0100 Subject: [PATCH] Unit test back vscode task (#17583) Jest extension being flaky it's sometimes a pain to run opened test only --- .vscode/tasks.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 395a4df0a69..7499d619181 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -22,6 +22,28 @@ "close": false }, "problemMatcher": [] + }, + { + "label": "twenty-server - run unit test file", + "type": "shell", + "command": "npx nx run twenty-server:jest -- --config ./jest.config.mjs ${relativeFile} --silent=false ${input:watchMode} ${input:updateSnapshot}", + "options": { + "cwd": "${workspaceFolder}/packages/twenty-server", + "env": { + "NODE_ENV": "test", + "NODE_OPTIONS": "--max-old-space-size=12288 --import tsx/esm" + }, + "shell": { + "executable": "/bin/zsh", + "args": ["-l", "-c"] + } + }, + "presentation": { + "reveal": "always", + "panel": "new", + "close": false + }, + "problemMatcher": [] } ], "inputs": [