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.
Installer avec mon Agent
Copiez cette demande dans votre Agent. Elle contient la page Skill de référence et le manifeste.
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.Votre Agent doit toujours présenter son plan et demander toute confirmation exigée par la politique de sécurité.
Ressources lisibles par les agents
Utilisez ces liens lorsqu’un Agent IA, un crawler ou un script a besoin d’un contexte propre au lieu de lire toute la page.
Tester
Utilisation de « dart-migrate-to-checks-package ». Convert a list equality assertion that currently compares items with an expected list.
Résultat attendu:
Use deep equality for the migrated collection assertion. Update the test imports, then run static analysis and the focused test.
Utilisation de « dart-migrate-to-checks-package ». Review an asynchronous throwsA migration that chains checks after awaiting throws.
Résultat attendu:
Use the asynchronous inspection callback because the awaited throws check returns a future. Ensure the assertion itself is awaited.
Utilisation de « dart-migrate-to-checks-package ». Plan conversion of a custom matcher that validates a Person property.
Résultat attendu:
Create a Subject extension, extract the property with has or nest, and preserve a clear failure description.
Audit de sécurité
SûrAll 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.
Facteurs de risque
⚡ Contient des scripts (1)
⚙️ Commandes externes (50)
Partager et citer ce rapport
Partagez le rapport d’évaluation versionné, le badge neutre, la carte intégrable et les citations. Skillstore présente les preuves sans décider si ce Skill est sûr.
Copier le lien du rapport
https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package?utm_source=security_passport_badge)Badge 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>Carte intégrable
<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>Citations académiques (APA · BibTeX · CFF)
Citation 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/1Citation 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"
Score Skillstore
Pourquoi ce score Niveau de confiance des preuves: MoyenCe que vous pouvez créer
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.
Essayez ces 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]
Bonnes pratiques
- 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.
Éviter
- 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.