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 com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
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.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela política de segurança.
Recursos legíveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
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.
Auditoria de segurança
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.
Fatores de risco
⚡ Contém scripts (1)
⚙️ Comandos externos (50)
Compartilhar e citar este relatório
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatório
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>Cartão incorporável
<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>Citações acadêmicas (APA · BibTeX · CFF)
Citação 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ção 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"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
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.
Teste estes 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]
Boas práticas
- 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.