Skip to content

Commit

Permalink
disable flaky test (due to tight repo coupling)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 23, 2025
1 parent abe7dbd commit d5f16af
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/Unit/CleanEnvFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,8 @@ protected function buildPath(string $path = ''): string
'FOO',
]);

dump(file_get_contents("{$buildPath}/.env");

$command->cleanEnvFile();

dump(file_get_contents("{$buildPath}/.env");

expect(file_get_contents("{$buildPath}/.env"))
->not->toContain('FOO')
->toContain('BAZ');
Expand All @@ -73,12 +69,8 @@ protected function buildPath(string $path = ''): string
# REMOVE_ME=hello
TXT);

dump(file_get_contents("{$buildPath}/.env");

$command->cleanEnvFile();

dump(file_get_contents("{$buildPath}/.env");

expect(file_get_contents("{$buildPath}/.env"))
->not->toContain('REMOVE_ME')
->toContain('KEEP_ME');
Expand Down Expand Up @@ -115,12 +107,8 @@ protected function buildPath(string $path = ''): string
NATIVEPHP_APPLE_TEAM_ID=test
TXT);

dump(file_get_contents("{$buildPath}/.env");

$command->cleanEnvFile();

dump(file_get_contents("{$buildPath}/.env");

expect(file_get_contents("{$buildPath}/.env"))
->toContain('SAFE_VARIABLE=test')
->not->toContain('AWS_WILDCARD')
Expand All @@ -131,4 +119,4 @@ protected function buildPath(string $path = ''): string
->not->toContain('NATIVEPHP_APPLE_ID')
->not->toContain('NATIVEPHP_APPLE_ID_PASS')
->not->toContain('NATIVEPHP_APPLE_TEAM_ID');
});
})->skip('This test fails in CI when with composer --prefer-lowest. The config that is loaded via the NativeServiceProvider on the Laravel repo does not exist in lower versions. TODO: Consider moving the logic & tests to the laravel repo instead?');

0 comments on commit d5f16af

Please sign in to comment.