toStartWith("---\n") ->toContain("\nname: livewire-material-development\n") ->toMatch('/\ndescription: \S.+\n/'); }); it('names every component in the skill', function () { $skill = File::get(SKILL_PATH); $undocumented = collect(File::allFiles(__DIR__.'/../../resources/views/components')) ->filter(fn (SplFileInfo $file): bool => str_ends_with($file->getFilename(), '.blade.php')) ->map(fn (SplFileInfo $file): string => Str::of($file->getRelativePathname()) ->beforeLast('.blade.php') ->replace(DIRECTORY_SEPARATOR, '.') ->toString()) ->reject(fn (string $component): bool => str_contains($skill, "values(); expect($undocumented)->toBeEmpty(); });