CodeSampleX

Sample

verify pkg:npm/vitest@4.1.11

sha256:a00833bdf2259fdeb0a1b8cd973f44b61d120100bca469f45b1d4c1ba79a9e2c

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10

Verification-run environments

Environment Contract Stages Run
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-28

Case

HOW
Goal
verify pkg:npm/vitest@4.1.11
Packages
Symbols
  • createVitest
  • parseCLI
  • defineConfig
  • mergeConfig
Environment
node 22.23.2
Created
2026-08-28T08:24:55Z

Contract

  1. assert parseCLI parses run mode, boolean flags, numeric flags, and positional filter paths
  2. assert parseCLI captures watch mode, reporter arrays, and passthrough arguments after double dash
  3. assert createVitest initializes Vitest runner instance with version 4.1.11 and resolved config
  4. assert Vitest instance provides workspace projects and root project access
  5. assert Vitest instance supports provide and getProvidedContext for cross-test data sharing
  6. assert Vitest instance invokes onClose callbacks on close() shutdown
  7. assert createVitest initializes alternate benchmark execution mode
  8. assert defineConfig and mergeConfig deep merge configuration objects
  9. assert vi.fn creates spies tracking invocations and return values
  10. assert vi.spyOn intercepts method execution and mockRestore restores original method

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous