From 69c1c629927cd78286fc6c8d61b5b5ad78245508 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 24 Oct 2023 22:27:27 +0300 Subject: add a workaround for make_self_url() when invoked off /api/ endpoint, add unit tests for this method --- .vscode/tasks.json | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to '.vscode/tasks.json') diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d59e3ff10..11fd2c305 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,22 +6,30 @@ "label": "phpstan (watcher)", "isBackground": true, "problemMatcher": { - "fileLocation": ["relative", "${workspaceRoot}"], + "fileLocation": [ + "relative", + "${workspaceRoot}" + ], "owner": "phpstan-watcher", "pattern": { - "regexp": "^/app/(.*?):([0-9\\?]*):(.*)$", - "file": 1, - "line": 2, - "message": 3 + "regexp": "^/app/(.*?):([0-9\\?]*):(.*)$", + "file": 1, + "line": 2, + "message": 3 }, "background": { "activeOnStart": true, "beginsPattern": "Using configuration file", "endsPattern": "All done" - } - }, - "command": "chmod +x ${workspaceRoot}/utils/phpstan-watcher.sh && ${workspaceRoot}/utils/phpstan-watcher.sh", + }, + "command": "chmod +x ${workspaceRoot}/utils/phpstan-watcher.sh && ${workspaceRoot}/utils/phpstan-watcher.sh" + }, + { + "type": "shell", + "label": "phpunit", + "command": "chmod +x ${workspaceRoot}/utils/phpunit.sh && ${workspaceRoot}/utils/phpunit.sh", + "problemMatcher": [] }, { "type": "gulp", @@ -30,9 +38,9 @@ "label": "gulp: default", "options": { "env": { - "PATH": "${env:PATH}:/usr/lib/sdk/node16/bin/" + "PATH": "${env:PATH}:/usr/lib/sdk/node16/bin/" } - } + } } ] } -- cgit v1.2.3