
dart-migrate-to-checks-package
Replace the usage of `expect` and similar functions from `package:matcher`
by dart-langFree
Description
dart-migrate-to-checks-package is an agent skill from the Dart team's skills collection, listed on skills.sh. It helps an AI agent migrate a Dart test suite from the older package:matcher assertions, which package:test exports by default, to the package:checks assertion library. The skill says package:checks is modern, type-safe and more readable. Its contents cover when to use the migration, the workflow, the key syntax differences and pitfalls, and a mapping table from each matcher to its checks equivalent. It also lists matchers that have no direct replacement, and it suggests strategies for finding the places in a codebase where the migration is needed. The skill is meant for teams that want to move a whole test suite to the newer assertions without changing what the tests check. A skill is a SKILL.md file of instructions, sometimes with scripts and reference notes, that an AI agent loads only when a task calls for it. The skill is listed as free on skills.sh, and its security audits show Gen Agent Trust Hub: Pass and Socket: Pass.…
Highlights
- Converts expect calls from package:matcher to package:checks
- Matcher-to-checks mapping table
- Lists matchers with no direct replacement
- Strategies for finding code to migrate
Ratings & Reviews
No ratings yet
Be the first to rate dart-migrate-to-checks-package.
People also visit

migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn
dart-migrate-to-checks-package FAQ
What does the dart-migrate-to-checks-package skill do?
It helps an AI agent replace expect and similar matcher calls with the equivalent package:checks assertions.
How do I install it?
Run: npx skills add https://github.com/dart-lang/skills --skill dart-migrate-to-checks-package
Is it free?
Yes. The skill is listed as free on skills.sh.
Why migrate?
The skill describes package:checks as modern, type-safe and more literate than package:matcher.
Are there matchers that cannot be converted?
Yes. The skill has a section on matchers with no direct replacement.
What are the best dart-migrate-to-checks-package alternatives?
Popular alternatives to dart-migrate-to-checks-package include dart-add-unit-test, swift-testing and dart-run-static-analysis. See all dart-migrate-to-checks-package alternatives











