diff --git a/packages/framework/tests/Unit/HydeConfigFilesAreMatchingTest.php b/packages/framework/tests/Unit/HydeConfigFilesAreMatchingTest.php index 5e81e590c42..a056cefe5f2 100644 --- a/packages/framework/tests/Unit/HydeConfigFilesAreMatchingTest.php +++ b/packages/framework/tests/Unit/HydeConfigFilesAreMatchingTest.php @@ -14,6 +14,15 @@ */ class HydeConfigFilesAreMatchingTest extends TestCase { + protected function setUp(): void + { + parent::setUp(); + + if (file_exists(Hyde::path('README.md')) && ! str_contains(file_get_contents(Hyde::path('README.md')), 'HydePHP - Source Monorepo')) { + $this->markTestSkipped('Test skipped when not running in the monorepo.'); + } + } + public function test_hyde_config_files_are_matching() { $this->assertFileEqualsIgnoringNewlineType(