CodeSampleX

示例

Disprove the belief that fake-timer time seeding accepts arbitrary date strings.

sha256:143845512869b47a10e49289da6c1a5aa1c10b29acd92cd7bc7f166b4c5bbbae

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Disprove the belief that fake-timer time seeding accepts arbitrary date strings. HOW
jest 30.4.2
环境
node
创建时间
2026-08-17T03:17:22Z

常见的想当然

A strong implementation instinct is that `jest.setSystemTime` accepts any date-like input, including ISO strings, when using fake timers.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执