Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Dart Checks Migration

Skill Verifiziert Aktiv

Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.

Zweck

To guide developers in modernizing their Dart test suites by replacing outdated `expect` calls with the more robust `package:checks` equivalents.

Funktionen

  • Detailed migration workflow
  • Strategies for discovering migration candidates
  • Comprehensive table of common `expect` to `check` pattern replacements
  • Specific guidance on handling async operations
  • Constraints for ensuring migration correctness

Anwendungsfälle

  • Migrating existing test files from `package:matcher` to `package:checks`.
  • Replacing specific legacy matchers like `equals`, `isNull`, `isTrue`, `isFalse`.
  • Updating tests involving `throwsA` and custom matcher patterns.
  • Ensuring tests pass and code analyzes cleanly after migration.

Nicht-Ziele

  • Automated migration of custom matchers; manual review is required.
  • Migrating code outside of the `test/` directory or `pubspec.yaml`.
  • Fixing unrelated test failures or code quality issues.

Installation

npx skills add flutter/skills

Führt das Vercel skills CLI (skills.sh) via npx aus — benötigt Node.js lokal und mindestens einen installierten skills-kompatiblen Agent (Claude Code, Cursor, Codex, …). Setzt voraus, dass das Repo dem agentskills.io-Format folgt.

Qualitätspunktzahl

Verifiziert
98 /100
Analysiert 1 day ago

Vertrauenssignale

Letzter Commit2 days ago
Sterne1.9k
LizenzBSD-3-Clause
Status
Quellcode ansehen