サンプル
@sinonjs/fake-timers 15.4.0
検証済みサンプル — npm @sinonjs/fake-timers 15.4.0. node 22 · linux alpine/x64 · docker で contract を実行し、成功しました: createClock(start) creates an independent Clock…
sha256:d0bb23d5e72e56cf5cfa90e4be121630202da76344b58d68185c28e8609d02cb
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 1
- ビルドした署名鍵
- 1
宣言された環境
node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-20 |
ケース
HOW- ゴール
- verify pkg:npm/%40sinonjs/fake-timers@15.4.0
- 環境
- node 22.23.2
- 作成日
- 2026-08-20T17:48:50Z
コントラクト
- createClock(start) creates an independent Clock instance with initial now matching start
- clock.setTimeout(fn, delay, ...args) schedules a timer and executes it with arguments when advanced
- clock.clearTimeout(id) cancels a pending scheduled timeout
- clock.setInterval(fn, interval) repeatedly executes callback at specified interval until clearInterval(id)
- clock.tick(ms) synchronously advances clock time by ms and fires expired timers in chronological order
- clock.tickAsync(ms) advances clock time asynchronously, awaiting async timer callbacks
- clock.runAll() exhausts all scheduled timers in the queue
- clock.runToLast() advances time to the timestamp of the last scheduled timer and executes pending timers
- clock.setSystemTime(now) adjusts current clock time without firing intermediate timers
- clock.reset() restores clock time to its initial start value and clears all scheduled timers
- install(config) replaces global timer functions with fake timers and uninstall() restores native global functions
- withGlobal(global) returns a fake timer controller bound to the provided global object
ファイル
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- src/index.mjs
- test/contract.mjs
オリジンシーダー
匿名