07cfaa78ef
Fixes https://github.com/twentyhq/twenty/issues/15925 - update field metadata update logic - uniformize the way index are named - command to migrate v1-named unique index - add integration testing --------- Co-authored-by: prastoin <paul@twenty.com>
102 lines
2.9 KiB
JSON
102 lines
2.9 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
|
|
"configurations": [
|
|
{
|
|
"name": "twenty-server - start debug",
|
|
"type": "node",
|
|
"runtimeVersion": "24.5",
|
|
"request": "launch",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": ["nx", "run", "twenty-server:start"],
|
|
"outputCapture": "std",
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
"console": "internalConsole",
|
|
"cwd": "${workspaceFolder}/packages/twenty-server/"
|
|
},
|
|
{
|
|
"name": "twenty-server - worker debug",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": ["nx", "run", "twenty-server:worker"],
|
|
"outputCapture": "std",
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
"console": "internalConsole",
|
|
"cwd": "${workspaceFolder}/packages/twenty-server/"
|
|
},
|
|
{
|
|
"name": "twenty-server - command debug example",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeVersion": "24.5",
|
|
"runtimeArgs": [
|
|
"nx",
|
|
"run",
|
|
"twenty-server:command",
|
|
"my-command",
|
|
"--my-parameter value"
|
|
],
|
|
"outputCapture": "std",
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
"console": "internalConsole",
|
|
"cwd": "${workspaceFolder}/packages/twenty-server/"
|
|
},
|
|
{
|
|
"name": "Playwright Test current file",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": ["nx", "test", "twenty-e2e-testing", "${file}"],
|
|
"console": "integratedTerminal",
|
|
"cwd": "${workspaceFolder}",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"envFile": "${workspaceFolder}/packages/twenty-e2e-testing/.env"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "twenty-server - debug integration test file (to launch with test file open)",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": [
|
|
"nx",
|
|
"run",
|
|
"twenty-server:jest",
|
|
"--",
|
|
"--config",
|
|
"./jest-integration.config.ts",
|
|
"${relativeFile}",
|
|
"--silent=false",
|
|
],
|
|
"cwd": "${workspaceFolder}/packages/twenty-server",
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"env": {
|
|
"NODE_ENV": "test"
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "twenty-server - debug unit test file (to launch with test file open)",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": [
|
|
"nx",
|
|
"run",
|
|
"twenty-server:jest",
|
|
"--",
|
|
"--config",
|
|
"./jest.config.mjs",
|
|
"${relativeFile}"
|
|
],
|
|
"cwd": "${workspaceFolder}/packages/twenty-server",
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"env": {
|
|
"NODE_ENV": "test"
|
|
}
|
|
}
|
|
]
|
|
}
|