什麼是 dart-checks-migration?
替換 `package:matcher` 中 `expect` 和類似函數的用法 到 `package:checks` 的等價物。 來源:kevmoo/dash_skills。
替換 `package:matcher` 中 `expect` 和類似函數的用法 到 `package:checks` 的等價物。
透過命令列快速安裝 dart-checks-migration AI 技能到你的開發環境
來源:kevmoo/dash_skills。
import 'package:test/scaffolding.dart'; ONLY after all expect calls are replaced. This ensures incremental progress.
| expect(a, equals(b)) | check(a).equals(b) | | expect(a, isTrue) | check(a).isTrue() | | expect(a, isFalse) | check(a).isFalse() | | expect(a, isNull) | check(a).isNull() | | expect(a, isNotNull) | check(a).isNotNull() | | expect(() => fn(), throwsA ()) | check(() => fn()).throws () | | expect(list, hasLength(n)) | check(list).length.equals(n) |
| expect(a, closeTo(b, delta)) | check(a).isA ().isCloseTo(b, delta) | | expect(a, greaterThan(b)) | check(a).isGreaterThan(b) | | expect(a, lessThan(b)) | check(a).isLessThan(b) | | expect(list, isEmpty) | check(list).isEmpty() | | expect(list, isNotEmpty) | check(list).isNotEmpty() | | expect(list, contains(item)) | check(list).contains(item) |
替換 `package:matcher` 中 `expect` 和類似函數的用法 到 `package:checks` 的等價物。 來源:kevmoo/dash_skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/kevmoo/dash_skills --skill dart-checks-migration替換 `package:matcher` 中 `expect` 和類似函數的用法 到 `package:checks` 的等價物。 來源:kevmoo/dash_skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/kevmoo/dash_skills --skill dart-checks-migration 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/kevmoo/dash_skills