dart-migrate-to-checks-package は何をしますか?
package:matcher の expect や類似の関数の使用を、package:checks の同等の関数に置き換えます。
`package:matcher` の `expect` や類似の関数の使用を、`package:checks` の同等の関数に置き換えます。
このスキルは、Dart プロジェクトにおけるテストアサーションを `package:matcher` ベースから、より新しい `package:checks` ベースへと自動的に移行するためのツールです。`expect`、`expectLater`、そして `package:matcher` のマッチャー関数(例:`equals`、`isNull`、`throwsA` など)の使用を検出し、対応する `package:checks` の API(`check`、`that`、`it` など)に変換します。この移行により、より統一されたチェイン可能なアサーションスタイルが提供され、型安全性が向上し、テストコードの可読性と保守性が向上します。対応プラットフォームは Dart ネイティブのエージェント(Dart CLI ツールなど)で、Dart ファイルに対してこのコード変換を適用します。変換プロセスは、コードの抽象構文木(AST)を解析し、各マッチャーの使用パターンに基づいて対応する `checks` の呼び出しを生成することで機能します。
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-migrate-to-checks-packageInstalled? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
package:matcher の expect や類似の関数の使用を、package:checks の同等の関数に置き換えます。
This repo contains 8 individual skills — each has its own dedicated page.
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.
Entrypoint structure, exit codes, cross-platform scripts. Use when building command line utilities, scripts, or applications.
Collect coverage using the coverage packge and create an LCOV report
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.
Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.
Use switch expressions and pattern matching where appropriate
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.