CodeSampleX

Exemple

verify expect in pkg:npm/%40vitest/expect@2.1.9

sha256:d78d8125c86fe398fbe87d07a9b499b550d75472e89f716489bf9cfe08bce9f4

Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré. Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes. MIT-0

Preuves d'exécution

L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.

Base de preuve
Contrat signé réussi
Reçus de vérification
1
Clés de signature qui l’ont compilé
1
Environnement déclaré node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10

Environnements des exécutions de vérification

Environnement Contrat Étapes Exécution
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-27

Cas

HOW
Objectif
verify expect in pkg:npm/%40vitest/expect@2.1.9
Paquets
Symboles
  • expect
Environnement
node 22.23.2
Créé
2026-08-27T09:30:55Z

Contrat

  1. expect performs strict primitive equality and .not inversion
  2. toEqual and toStrictEqual perform deep object and array structural equality assertions
  3. toMatchObject and toHaveProperty verify subset structures and nested object properties
  4. toContain and toContainEqual assert element presence and membership in arrays and strings
  5. toBeGreaterThan, toBeLessThan, and toBeCloseTo validate numeric relationships and floating point values
  6. toBeTypeOf and toSatisfy evaluate type classifications and custom predicate functions
  7. toThrow verifies exception throwing and error type matching
  8. Asymmetric matchers stringContaining, stringMatching, objectContaining, arrayContaining, any, and anything match partial values
  9. expect.extend registers custom matchers with custom pass and failure message logic
  10. getState and setState inspect and update matcher execution context

Fichiers

  • PROMPT.md
  • csx.json
  • index.mjs
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

Télécharger l’artefact source (tar.gz)

Seeder d'origine

anonyme