dart-migrate-to-checks-package

Official

Migrate Dart tests to Checks quickly and safely.

Authordart-lang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Replaces legacy Dart test assertions that rely on package:matcher with the modern, type-safe package:checks API, reducing brittleness and improving failure diagnostics.

Core Features & Use Cases

  • Import modernization: updates test imports from package:test to utilize package:checks scaffolding.
  • Assertion translation: converts expect/expectLater and common matchers to Checks equivalents, including deep equality and has-style checks.
  • Incremental migration: supports partial migration strategies and safe, repeatable refactors across multiple files.
  • Use Case: migrate a large test suite from matcher-based assertions to a Checks-based pattern to gain stronger type-safety and clearer failures.

Quick Start

Run the migration workflow to replace legacy matcher assertions with Checks equivalents across all tests.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dart-migrate-to-checks-package
Download link: https://github.com/dart-lang/skills/archive/main.zip#dart-migrate-to-checks-package

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.