Freeze The Clock In Tests

Use when a test depends on the current time, timezone or a sleep — inject or freeze the clock so the test asserts a fixed instant and never races the wall clock.

jiayaoqijia Updated 81 repo stars

File contents

jiayaoqijia/cryptoskill commit f6fb57d7e2

Frequently asked questions

npx get-skill add jiayaoqijia/freeze-the-clock-in-tests