diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 53faa28..8e3b59e 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -249,10 +249,11 @@ protected function isAccessible(User $user, ?string $path = null): bool - Tests live in the `tests/Feature` and `tests/Unit` directories. - Pest tests look and behave like this: - it('is true', function () { - expect(true)->toBeTrue(); - }); - + +it('is true', function () { +expect(true)->toBeTrue(); +}); + ### Running Tests @@ -266,13 +267,13 @@ protected function isAccessible(User $user, ?string $path = null): bool - When asserting status codes on a response, use the specific method like `assertForbidden` and `assertNotFound` instead of using `assertStatus(403)` or similar, e.g.: - it('returns all', function () { - $response = $this->postJson('/api/docs', []); - $response->assertSuccessful(); +it('returns all', function () { +$response = $this->postJson('/api/docs', []); - }); - +$response->assertSuccessful(); +}); + ### Mocking diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa0b63..06d53e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,6 +63,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- **Markdown Linting** - Fixed 88 markdown-lint errors in `.github/copilot-instructions.md` (#123) + - Added blank lines around headings (MD022) + - Added blank lines around lists (MD032) + - Removed multiple consecutive blank lines (MD012) + - Fixed unordered list indentation to 2 spaces (MD007) - **Permission System Guard Migration** - Migrated from 'web' to 'sanctum' guard (#126, #127, #128, #129) - Fixed `RoleApiTest.php` - Added explicit `guard_name='sanctum'` to all Permission and Role creation - Fixed `PersonApiTest.php` - Changed `guard_name` from 'web' to 'sanctum' for person permissions