Skip to content

Commit 60fc60f

Browse files
committed
read open from the config in open command
1 parent 6a2ea27 commit 60fc60f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/cli/src/commands/open.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export class OpenCommand extends Command {
4949
const resultsDirectories: string[] = [];
5050
const config = await readConfig(cwd, this.config, {
5151
output: this.output,
52+
port: this.port,
5253
});
5354
const matchedDirs = (
5455
await glob(resultsDir, {
@@ -82,7 +83,7 @@ export class OpenCommand extends Command {
8283
await allureReport.done();
8384

8485
await serve({
85-
port: this.port ? parseInt(this.port, 10) : undefined,
86+
port: config.port ? parseInt(config.port, 10) : undefined,
8687
servePath: config.output,
8788
open: true,
8889
});

0 commit comments

Comments
 (0)