34 lines
949 B
JSON
34 lines
949 B
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Run Test Pattern",
|
|
"type": "shell",
|
|
"command": "infisical run --env=dev --recursive -- bun test ${relativeFile} -t \"${input:testPattern}\"",
|
|
"options": { "env": { "NODE_ENV": "development" } },
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run Describe at Cursor",
|
|
"type": "shell",
|
|
"command": "infisical run --env=dev --recursive -- bun test ${relativeFile} --timeout 0 -t \"$(bun scripts/testScripts/getDescribeAtCursor.ts ${file} ${lineNumber})\"",
|
|
"options": { "env": { "NODE_ENV": "development" } },
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run Current Test File",
|
|
"type": "shell",
|
|
"command": "infisical run --env=dev --recursive -- bun test ${relativeFile}",
|
|
"options": { "env": { "NODE_ENV": "development" } },
|
|
"problemMatcher": []
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "testPattern",
|
|
"type": "promptString",
|
|
"description": "Test name pattern"
|
|
}
|
|
]
|
|
}
|