diff options
-rw-r--r-- | cmd/platform/test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/platform/test.go b/cmd/platform/test.go index c815eebc3..2442d8f43 100644 --- a/cmd/platform/test.go +++ b/cmd/platform/test.go @@ -131,7 +131,12 @@ func executeTestCommand(cmd *exec.Cmd) { } func runWebClientTests() { - os.Chdir("webapp") + if webappDir := os.Getenv("WEBAPP_DIR"); webappDir != "" { + os.Chdir(webappDir) + } else { + os.Chdir("../mattermost-webapp") + } + cmd := exec.Command("npm", "test") executeTestCommand(cmd) } |