Small fix to run webapp tests (#7777)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
deff850115
Коммит
e2b165cf3e
@@ -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)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user