Update dependencies
Composer: Laravel 13.43, Octane 2.25, Fortify 1.43 and Pest 5.3.7, with the packages they bring (70 in all). This fixes the advisories in Laravel and the Symfony components. npm: Vite 8.3.8 with Rolldown 1.2.19, Playwright 1.65.1 and chokidar 6. The asset build, CI and the dev container use Node.js 26. The dev image also has git for Composer. Both audits are clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,12 +6,12 @@ metadata:
|
||||
author: laravel
|
||||
---
|
||||
|
||||
# Testing Best Practices
|
||||
# Testing best practices
|
||||
|
||||
This skill provides rules for designing Laravel tests. Each rule file explains what to do and why. Use `search-docs` for Laravel and Pest API syntax.
|
||||
This project uses Pest. Follow the corresponding guidance in each rule.
|
||||
|
||||
## Consistency First
|
||||
## Consistency first
|
||||
|
||||
Read nearby tests before you choose syntax and organization.
|
||||
|
||||
@@ -19,7 +19,7 @@ A pattern repeated throughout the project is a convention, and project conventio
|
||||
|
||||
These rules govern the tests you write now. An existing test that follows a project convention is not defective merely because it conflicts with this skill. Do not delete or rewrite it. If the convention has drawbacks, explain them and let the user decide.
|
||||
|
||||
## What to Test
|
||||
## What to test
|
||||
|
||||
Read this section before you write a test.
|
||||
|
||||
@@ -33,7 +33,7 @@ Read this section before you write a test.
|
||||
- Judge an architecture test by the convention it protects, not by the rules above. An `arch()` test declares a rule for an entire directory, such as the parent class of every model, the classes that may use an enum, or the methods every factory declares. It intentionally checks declarations and fails when a new file breaks the convention.
|
||||
- Use the test tools that the project installs. Add a new test dependency, plugin, or browser only after the user asks for it.
|
||||
|
||||
## How to Apply
|
||||
## How to apply
|
||||
|
||||
1. Read the code under test. Read the tests in the same directory. Identify every decision in the code.
|
||||
2. Select every applicable branch in the rule index. Read every selected rule file.
|
||||
@@ -41,11 +41,11 @@ Read this section before you write a test.
|
||||
4. Write the tests. Run the smallest set of tests that covers the change. The tests must pass.
|
||||
5. Check every applicable item in `rules/review.md` and every selected rule file. Resolve every mismatch before completion.
|
||||
|
||||
## Rule Index
|
||||
## Rule index
|
||||
|
||||
Most changes need more than one rule file.
|
||||
|
||||
| Subject | Rule File |
|
||||
| Subject | Rule file |
|
||||
| --- | --- |
|
||||
| Test framework features that may already do the work | [`rules/finding-features.md`](rules/finding-features.md) |
|
||||
| File layout, test names, and groups | [`rules/naming.md`](rules/naming.md) |
|
||||
|
||||
Reference in New Issue
Block a user