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": [