CodeSampleX

Ejemplo

execute test suites and hooks with custom runner using startTests

sha256:3d920b6bed7a37e01ddddf3eb959fc381d551910b5f75a180c786c2c544f51d9

Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido. Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas. MIT-0

Evidencia de ejecución

El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.

Base de evidencia
Contrato firmado aprobado
Recibos de verificación
1
Claves de firma que lo compilaron
1
Entorno declarado linux 24 · ubuntu · glibc 2.39 x64 npm

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
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-23

Caso

HOW
Objetivo
execute test suites and hooks with custom runner using startTests
Paquetes
Símbolos
  • startTests
  • describe
  • test
  • it
  • beforeAll
  • afterAll
  • beforeEach
  • afterEach
  • onTestFinished
Creado
2026-08-23T14:48:30Z

Contrato

  1. startTests executes test files using a custom VitestRunner and reports pass and fail states
  2. describe and test define test suites and individual test cases
  3. startTests records test failures and error messages when assertions fail
  4. beforeEach and afterEach hooks execute before and after each test case in a suite
  5. beforeAll and afterAll hooks execute once before and after all tests in a suite
  6. onTestFinished hook executes when a test completes
  7. runTestSuite helper convenience wrapper executes tests successfully

Archivos

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

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

anónimo