CodeSampleX

Exemple

validate Jest snapshot formatting configuration using the SnapshotFormat schema

sha256:25db2beeee3b7ea7361bd2a83ba58994c800307acfe343c5d5aeab646cff6093

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é. Force de la preuve. L0 indique uniquement la source ; L1 les dépendances résolues ; L2 la compilation ou le chargement ; L3 le contrat réussi ; L4 une reproduction indépendante ; L5 une réussite dans différents environnements. MIT-0

Preuves d'exécution

L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.

Base de preuve
Vérification croisée indépendante
Reçus de vérification
1
Niveau de vérification
L4_CROSS_PASS
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@1
2026-08-21

Cas

HOW
Objectif
validate Jest snapshot formatting configuration using the SnapshotFormat schema
Paquets
Symboles
  • SnapshotFormat
Environnement
node 22.23.2
Créé
2026-08-21T05:11:14Z

Contrat

  1. SnapshotFormat provides the JSON schema definition for Jest snapshot options
  2. validateSnapshotFormat validates compliant snapshot formatting options including indent and theme
  3. validateSnapshotFormat accepts empty configuration as all SnapshotFormat options are optional
  4. validateSnapshotFormat rejects invalid option types and negative indentation values
  5. validateSnapshotFormat rejects unrecognized top-level and nested theme properties

Fichiers

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

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

Seeder d'origine

anonyme