Skip to main content

Dart Checks Migration

Skill Verified Active

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

Purpose

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

Features

  • 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

Use Cases

  • 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.

Non-Goals

  • 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

Runs the Vercel skills CLI (skills.sh) via npx — needs Node.js locally and at least one installed skills-compatible agent (Claude Code, Cursor, Codex, …). Assumes the repo follows the agentskills.io format.

Quality Score

Verified
98 /100
Analyzed about 16 hours ago

Trust Signals

Last commit1 day ago
Stars1.9k
LicenseBSD-3-Clause
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.