Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,19 @@
"Composer\\Config::disableProcessTimeout",
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
],
"rector": "rector",
"lint": "pint",
"test:rector": "rector --dry-run",
"test:lint": "pint --test",
"test:types": "phpstan analyse",
"test:unit": "pest --colors=always --parallel --coverage --exactly=100",
"test:type-coverage": "pest --type-coverage --min=100",
"test": [
"@php artisan config:clear --ansi",
"@php artisan test"
"@test:type-coverage",
"@test:rector",
"@test:lint",
"@test:types",
"@test:unit"
]
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use function Pest\Laravel\get;

test('the application returns a successful response', function () {
test('the application returns a successful response', function (): void {
$response = get('/');

$response->assertStatus(200);
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
|
*/

function something()
function something(): void
{
// ..
}
2 changes: 1 addition & 1 deletion tests/Unit/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

test('that true is true', function () {
test('that true is true', function (): void {
expect(true)->toBeTrue();
});