Unit test back vscode task (#17583)

Jest extension being flaky it's sometimes a pain to run opened test only
This commit is contained in:
Paul Rastoin 2026-01-30 16:48:49 +01:00 committed by GitHub
parent f46da3eefd
commit 5791bd2943
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

22
.vscode/tasks.json vendored
View file

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