Skip to content

Commit 66a263c

Browse files
authored
Merge pull request #2240 from nats-afs/fix/288-rebuild-command-cherry-pick
[2.x] Fix rebuild command showing the wrong console output
2 parents 9fbb0c7 + 4b3a690 commit 66a263c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/framework/src/Console/Commands/RebuildPageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function handle(): void
7676
public function printFinishMessage(): void
7777
{
7878
$this->createdSiteFile(Command::fileLink(
79-
Pages::getPage($this->path)->getOutputPath()
79+
Hyde::sitePath(Pages::getPage($this->path)->getOutputPath())
8080
))->withExecutionTime();
8181
}
8282

packages/framework/tests/Feature/Commands/RebuildPageCommandTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public function testHandleIsSuccessfulWithValidPath()
1616
{
1717
$this->file('_pages/test-page.md', 'foo');
1818

19-
$this->artisan('rebuild _pages/test-page.md')->assertExitCode(0);
19+
$this->artisan('rebuild _pages/test-page.md')
20+
->expectsOutputToContain('_site/test-page.html')
21+
->assertExitCode(0);
2022

2123
$this->assertFileExists(Hyde::path('_site/test-page.html'));
2224

0 commit comments

Comments
 (0)