CodeSampleX

Exemplo

verify vitest.beforeAll in pkg:npm/vitest@2.1.9

sha256:99732657ce5d8a89dddd602f71b4e7776025dc73405f2d6d200fed0c86f68836

Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu. Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas. MIT-0

Evidência de execução

O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.

Base da evidência
Contrato assinado aprovado
Recibos de verificação
1
Chaves de assinatura que o compilaram
1
Ambiente declarado node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10

Ambientes das execuções de verificação

Ambiente Contrato Etapas Execução
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

Caso

HOW
Objetivo
verify vitest.beforeAll in pkg:npm/vitest@2.1.9
Pacotes
Símbolos
  • vitest.beforeAll
Ambiente
node 22.23.2
Criado
2026-08-28T03:59:50Z

Contrato

  1. beforeAll executes once before any test cases in the suite begin execution
  2. beforeAll awaits returned promises from async hook callbacks before starting test execution
  3. beforeAll executes multiple hooks registered within the same suite in registration order (FIFO)
  4. beforeAll executes parent suite setup hooks before child suite setup hooks in nested describe blocks
  5. beforeAll returning a cleanup function executes that teardown callback after all tests in the suite finish
  6. beforeAll failure prevents and skips execution of test cases within that suite

Arquivos

  • PROMPT.md
  • csx.json
  • package-lock.json
  • package.json
  • spec.json
  • src/recorder.mjs
  • test/contract.mjs
  • test/failing.test.mjs
  • test/suite.test.mjs
  • test/teardown.test.mjs

Baixar o artefato de código-fonte (tar.gz)

Seeder de origem

anônimo