Skip to content

Commit

Permalink
Add inverse test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 8, 2024
1 parent 4f5d228 commit 5e653a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/framework/tests/Unit/Facades/ViteFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ public function testRunningReturnsTrueWhenEnvironmentVariableIsSet()

putenv('HYDE_SERVER_VITE');
}

public function testRunningReturnsFalseWhenEnvironmentVariableIsNotSetOrDisabled()
{
$this->assertFalse(Vite::running());

putenv('HYDE_SERVER_VITE=disabled');

$this->assertFalse(Vite::running());

putenv('HYDE_SERVER_VITE');

$this->assertFalse(Vite::running());
}

public function testRunningReturnsTrueWhenViteHotFileExists()
{
Expand Down

0 comments on commit 5e653a9

Please sign in to comment.