CodeSampleX

サンプル

verify withGlobal in pkg:npm/%40sinonjs/fake-timers@10.3.0

sha256:74c73af412a84b53fc22939a8ba115de693938a7869da88466963307183bc743

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10

検証実行環境

環境 コントラクト ステージ 実行日
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-26

ケース

HOW
ゴール
verify withGlobal in pkg:npm/%40sinonjs/fake-timers@10.3.0
パッケージ
シンボル
  • withGlobal
環境
node 22.23.2
作成日
2026-08-26T10:36:43Z

コントラクト

  1. withGlobal returns a FakeTimers instance bound to the provided custom global object
  2. install on withGlobal context overrides timer functions on custom global without modifying ambient globalThis
  3. custom global setTimeout executes callbacks when clock is advanced with tick
  4. custom global setInterval executes repeatedly at intervals until clearInterval
  5. clock runAll exhausts all pending timers on the bound custom global context
  6. clock setSystemTime adjusts custom global Date now without triggering pending timers
  7. clock.uninstall restores original timer functions on the custom global object
  8. withGlobal createClock creates an independent clock within the custom global context
  9. withGlobal allows re-binding to a different target global context

ファイル

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

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名