diff --git a/composer.json b/composer.json index 7a74323..86f5f4e 100644 --- a/composer.json +++ b/composer.json @@ -39,6 +39,7 @@ "spatie/image": "^3.3.2", "spatie/laravel-ray": "^1.33", "spatie/pdf-to-image": "^2.2", + "spatie/pest-expectations": "^1.5", "spatie/pest-plugin-snapshots": "^2.1", "spatie/pixelmatch-php": "^1.0", "wnx/sidecar-browsershot": "dev-main" diff --git a/tests/PdfTest.php b/tests/PdfTest.php index 82aca97..b5cc81c 100644 --- a/tests/PdfTest.php +++ b/tests/PdfTest.php @@ -65,7 +65,7 @@ 'This is the header HTML: Header title', 'Body html', ]); -})->skipOnLinux(); +})->skipOnGitHubActions(); it('can render footer html', function () { Pdf::html('Body html') @@ -76,7 +76,7 @@ 'This is the footer HTML: Footer title', 'Body html', ]); -})->skipOnLinux(); +})->skipOnGitHubActions(); it('can create a pdf using the facade', function () { Pdf::view('test')->save($this->targetPath); diff --git a/tests/Pest.php b/tests/Pest.php index fbb3509..0a83067 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -22,6 +22,8 @@ }) ->in(__DIR__); +registerSpatiePestHelpers(); + function getTestSupportPath($suffix = ''): string { return __DIR__."/TestSupport/{$suffix}";