From 4829f0c138e1a8fad1edd7a1d6e5991b6ddc59b9 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Sat, 25 Jun 2022 18:44:51 +0300 Subject: [PATCH] fix: show full path to UI in terminal --- packages/vitest/src/node/reporters/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitest/src/node/reporters/base.ts b/packages/vitest/src/node/reporters/base.ts index 87e9824bdd7d..129fa8ebdfc7 100644 --- a/packages/vitest/src/node/reporters/base.ts +++ b/packages/vitest/src/node/reporters/base.ts @@ -43,7 +43,7 @@ export abstract class BaseReporter implements Reporter { this.ctx.log(`${c.inverse(c.bold(mode))} ${versionTest} ${c.gray(this.ctx.config.root)}`) if (this.ctx.config.ui) - this.ctx.log(c.dim(c.green(` UI started at http://${this.ctx.config.api?.host || 'localhost'}:${c.bold(`${this.ctx.server.config.server.port}`)}`))) + this.ctx.log(c.dim(c.green(` UI started at http://${this.ctx.config.api?.host || 'localhost'}:${c.bold(`${this.ctx.server.config.server.port}`)}${this.ctx.config.uiBase}`))) else if (this.ctx.config.api) this.ctx.log(c.dim(c.green(` API started at http://${this.ctx.config.api?.host || 'localhost'}:${c.bold(`${this.ctx.config.api.port}`)}`)))