dart-migrate-to-checks-package
Migrate Dart Tests to Package Checks
Legacy matcher assertions can lose type safety and hide migration errors. This skill guides precise conversions to package:checks with verification steps and pitfall warnings.
Instalar con mi Agente
Copia esta solicitud en tu Agente. Incluye la página canónica del Skill y el manifiesto.
Review the Skillstore skill "dart-migrate-to-checks-package" from https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package.md and its manifest at https://skillstore.io/api/skills/dart-lang-dart-migrate-to-checks-package/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Tu Agente debe seguir mostrando su plan y solicitar cualquier confirmación exigida por la política de seguridad.
Recursos legibles por agentes
Usa estos enlaces cuando un agente de IA, crawler o script necesite contexto limpio en vez de leer la página completa.
Pruébalo
Usando "dart-migrate-to-checks-package". Convert a list equality assertion that currently compares items with an expected list.
Resultado esperado:
Use deep equality for the migrated collection assertion. Update the test imports, then run static analysis and the focused test.
Usando "dart-migrate-to-checks-package". Review an asynchronous throwsA migration that chains checks after awaiting throws.
Resultado esperado:
Use the asynchronous inspection callback because the awaited throws check returns a future. Ensure the assertion itself is awaited.
Usando "dart-migrate-to-checks-package". Plan conversion of a custom matcher that validates a Person property.
Resultado esperado:
Create a Subject extension, extract the property with has or nest, and preserve a clear failure description.
Auditoría de seguridad
SeguroAll 210 static findings are false positives caused by Markdown delimiters and ordinary Dart syntax in documentation. The skill contains no executable scripts, prompt injection, data exfiltration intent, or system reconnaissance behavior.
Factores de riesgo
⚡ Contiene scripts (1)
⚙️ Comandos externos (50)
Compartir y citar este informe
Comparte el informe de evaluación versionado, la insignia neutral, la tarjeta insertable y las citas. Skillstore presenta evidencias sin decidir si este Skill es seguro.
Copiar enlace del informe
https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportInsignia Markdown
[](https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package?utm_source=security_passport_badge)Insignia HTML
<a href="https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dart-lang-dart-migrate-to-checks-package/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Tarjeta para insertar
<iframe src="https://skillstore.io/embed/skills/dart-lang-dart-migrate-to-checks-package.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citas académicas (APA · BibTeX · CFF)
Cita APA
dart-lang. (2026). dart-migrate-to-checks-package security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1Cita BibTeX
@techreport{dart-lang-dart-lang-dart-migrate-to-checks-package-2026,
author = {dart-lang},
title = {dart-migrate-to-checks-package security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "dart-migrate-to-checks-package security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "dart-lang"
date-released: "2026-08-22"
url: "https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1"
identifiers:
- type: other
value: "skillstore:dart-lang-dart-migrate-to-checks-package:audit:1"
description: "Skillstore immutable audit report identifier"
Puntuación de Skillstore
Por qué esta puntuación Confianza de la evidencia: MedioLo que puedes crear
Modernize a Dart Test Suite
Convert legacy expect assertions while preserving test intent and improving static type safety.
Review a Migration Pull Request
Check conversions for deep equality, asynchronous behavior, nullable values, and matcher-specific pitfalls.
Replace Custom Matchers
Redesign custom Matcher subclasses as package:checks Subject extensions with clear rejection messages.
Prueba estos prompts
Convert this Dart expect assertion to package:checks. Explain any semantic difference and show the required import changes: [assertion]
Migrate this Dart test file from package:matcher to package:checks. Preserve behavior, update imports, and identify assertions requiring deep equality: [file content]
Review this partial package:checks migration. Find incorrect equality, missing awaits, nullable boolean issues, map containment errors, and remaining legacy expect calls: [changes]
Plan a staged migration of this Dart repository to package:checks. Group files by risk, address custom matchers, define verification commands, and propose review checkpoints: [repository context]
Mejores prácticas
- Migrate one file or coherent test group at a time, then run analysis and focused tests.
- Review collection, regular expression, nullable, and asynchronous assertions for semantic differences.
- Remove temporary legacy imports only after every expect call has been converted.
Evitar
- Do not replace every collection expect call with equals without checking deep equality requirements.
- Do not omit await from asynchronous checks or assume synchronous throws chaining applies to futures.
- Do not remove legacy imports before identifying all remaining matcher dependencies.